Set Permanant hostname on AWS EC2 CentOS 7 server

On AWS EC2 when you boot, hostname set something like

To chaneg this, run


To disable change of hostname, run

Now reboot your server with

Test network performance with iperf

iperf can be used to test network performance between two servers. You can install iperf on Ubuntu/Debian with command

To run test, you need to run iperf in server mode in one of the server using command

On other server, run

Load Testing with Siege

siege is an open source program to load test and bechmark web site.

To install siege on Ubuntu/debian, run

To generate 250 concurrent users, run

To simiulate 100 users with 10 second delay betwen requests

To simulate real work load, you may need to send traffic to multiple URLs on your web site. You can do this by creating a file with all urls of your web site. Now run

See load

Convert Video info MP4 using ffmpeg

Convert Video For Streaming

if you want to scale the video to specific size, use -vf scale option, example

Inject metadata

See ffmpeg

Create thumbnail from video using ffmpeg

To create thumbnail from video using ffmpeg, use

See ffmpeg

Scale a video using ffmpeg

To Scape a Video using ffmpeg, run

See ffmpeg

Cut a Video using ffmpeg

To cut a video using ffmpeg, use

See Install ffmpeg on Ubuntu