git-commit-auto
- Clone
$ git clone http://gist.github.com/5675296.git /path/to/somewhere
$ echo 'export PATH="/path/to/somewhere:$PATH"' >> ~/.bashrc
$ source ~/.bashrc
$ git clone http://gist.github.com/5675296.git /path/to/somewhere
$ echo 'export PATH="/path/to/somewhere:$PATH"' >> ~/.bashrc
$ source ~/.bashrc
#!/bin/bash | |
# This script will take an animated GIF and delete every other frame | |
# Accepts two parameters: input file and output file | |
# Usage: ./<scriptfilename> input.gif output.gif | |
# Make a copy of the file | |
cp $1 $2 | |
echo "copy completed" | |
# Get the number of frames | |
numframes=`gifsicle $1 -I | grep -P "\d+ images" --only-matching | grep "[0-9][0-9]*" --only-matching` |