Skip to content

Instantly share code, notes, and snippets.

@IsaacG
Created November 15, 2012 02:41
Show Gist options
  • Save IsaacG/4076299 to your computer and use it in GitHub Desktop.
Save IsaacG/4076299 to your computer and use it in GitHub Desktop.
A pastebin downloader
pbin ()
{
case "$1" in
http://pastebin.com/*)
url="http://pastebin.com/download.php?i=${1##*/}"
;;
http://pastebin.ca/*)
url="http://pastebin.ca/raw/${1##*/}"
;;
https://gist.github.com/*)
url="https://gist.github.com/raw/${1##*/}"
;;
*)
echo "I do not recognize that service";
return 1
;;
esac;
wget -qO- "$url";
echo
}
@vanjavk
Copy link

vanjavk commented Jul 2, 2018

cao bozicu, sta radis na projektu starom 6 godina

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