Skip to content

Instantly share code, notes, and snippets.

@gatlin
Created April 27, 2013 19:00
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 gatlin/5474202 to your computer and use it in GitHub Desktop.
Save gatlin/5474202 to your computer and use it in GitHub Desktop.
Nifty perl one-liner for shortening URLs on the command line via is.gd. Requires WWW::Shorten::IsGd
alias isgd="perl -MWWW::Shorten::IsGd -le 'print makeashorterlink shift'"
@gatlin
Copy link
Author

gatlin commented Apr 27, 2013

Usage:

$~ isgd http://niltag.net
http://is.gd/JKRp55

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