Skip to content

Instantly share code, notes, and snippets.

@persand
Created November 10, 2011 18:01
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save persand/1355589 to your computer and use it in GitHub Desktop.
Save persand/1355589 to your computer and use it in GitHub Desktop.
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
}
@ifree
Copy link

ifree commented Jan 31, 2012

哥你好搞笑

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment