Quantcast
Channel: Commands tagged shorturl
Browsing all 5 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Get full URL via http://untr.im/api/ajax/api

$ URL=[target.URL]; curl -q -d "url=$URL" http://untr.im/api/ajax/api | awk -F 'href="' '{print $3}' | awk -F '" rel="' '{print $1}' Get full url via untr.im View this command to comment, vote or add...

View Article



Image may be NSFW.
Clik here to view.

Shorten url with is.gd using curl, perl

$ curl -s "http://is.gd/api.php?longurl=[long_url]" // This is description for the old command: Unfortunately we to encode the URL. It can't be done with bash (without building it ourselves) so I used...

View Article

Image may be NSFW.
Clik here to view.

Generate a shortened URL with is.gd

$ isgd () { curl 'http://is.gd/create.php?format=simple&url='"$1" ; printf "\n" } Check the API. You shouldn't need sed. The print-newline at the end is to prevent zsh from inserting a % after the...

View Article

Image may be NSFW.
Clik here to view.

Short URLs with is.gd

$ isgd() { /usr/bin/wget -qO - "http://is.gd/create.php?format=simple&url=$1" ;} No curl and no sed, just wget :) View this command to comment, vote or add to favourites View all commands by vando...

View Article

Image may be NSFW.
Clik here to view.

lookup a short url with curl

$ curl -I -L http://t.co/mQUxL6yS View this command to comment, vote or add to favourites View all commands by seen_xu by David Winterbottom (codeinthehole.com)

View Article

Browsing all 5 articles
Browse latest View live




Latest Images