Used to manage ruby environment, since it is more beneficial and clean to use non-system one.
Install rbenv and ruby-build
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
| #!/bin/bash | |
| #Alright, so this should automatically convert a given video into a gif called optimized_output.gif | |
| # See here for explanation: https://github.com/lelandbatey/configDebDev/blob/master/helpFiles.txt#L113 | |
| ffmpeg -i $1 out%04d.gif # Extracts each frame of the video as a single gif | |
| convert -delay 4 -loop 0 out*.gif anim.gif # Combines all the frames into one very nicely animated gif. | |
| convert -layers Optimize anim.gif optimized_output.gif # Optimizes the gif using imagemagick | |
| # vvvvv Cleans up the leftovers |