Useful scripts & commands
Create Gif from Video file using ffmpeg
1ffmpeg -ss 5 -i path/to/video/file
2 -vf "fps=10,scale=1440:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse"
3 -loop 0 output.gif
Ubuntu Services
start-stop
1service apache2 start/stop
disable on startup
1sudo update-rc.d apache2 disable
### MySQL Docker container with different directory ```sh docker run --name mysql-docker -v /mnt/other-drive/data-dir:/var/lib/mysql \ -e MYSQL_ROOT_PASSWORD=ungabunga -d mysql:latest ``` comments powered by Disqus