sudo-apt get install curl
install RVM based on instructions on RVM web site:
curl -L https://get.rvm.io | bash -s stable --ruby
open new terminal window / shell for RVM to take effect
#converted from the python script here: http://gist.github.com/88057 | |
class UserAgent | |
# Some mobile browsers which look like desktop browsers. | |
MOBILE = /(iphone|ipod|blackberry|android|palm|windows\s+ce)/i | |
DESKTOP = /(windows|linux|os\s+[x9]|solaris|bsd)/i | |
BOT = /(spider|crawl|slurp|bot)/i | |
#Anything that looks like a phone isn't a desktop. | |
#Anything that looks like a desktop probably is. |
diff <(git show recurring) <(git show recurring_off_of_hotfix) |
# show a version of a file from a commit or branch (without checking out) | |
git show master:app/models/sku.rb | |
* Install Virtual Box | |
* Install latest ubuntu server on it | |
* sudo apt-get install dkms build-essentials gcc gcc++ make xserver-xorg xserver-xorg-core | |
* sudo reboot | |
* sudo mount /dev/cdrom /media/cdrom | |
* cd /media/cdrom | |
* sudo ./VBoxLinuxAdditions-x86.run | |
* install RVM |
(I put this together from comments on my reddit post, and included and credited all the additions from the comments)
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
echo 'usage: ./ffmpeg_to_gif.sh ~/Downloads/test.mov ~/Downloads/test.gif' | |
palette="/tmp/palette.png" | |
filters="fps=15,scale=1000:-1:flags=lanczos" | |
ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette | |
ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2 |