Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Sequoia
Created February 21, 2012 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sequoia/1878588 to your computer and use it in GitHub Desktop.
Save Sequoia/1878588 to your computer and use it in GitHub Desktop.
jpgto bash function
function jpgto(){
local jptkeyword=$1;
local jptpath=$2;
curl -silent -F keyword=$jptkeyword -F file="@$jptpath" jpg.to/finish.php >> /dev/null;
echo "http://jpg.to/$jptkeyword";
}
[you@home]$ jpgto delicious /path/to/cake.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment