Skip to content

Instantly share code, notes, and snippets.

View diniremix's full-sized avatar

Jorge Brunal diniremix

View GitHub Profile
@diniremix
diniremix / gist:1370410
Created November 16, 2011 15:44 — forked from persand/gist:1355589
Bash script for github.com/x URL:s -> git.io
function shit() {
if [ -n "$2" ]; then
curl -i http://git.io -F url=https://github.com/"$1" -F code="$2";
else
curl -i http://git.io -F url=https://github.com/"$1";
fi
}