— You Are At The Archives for the tinyurl Tag —

TinyURL Shortener from Terminal

10.08.09 // Software // (0) // 15 views

So i wanted to shorten some urls quickly and easily.
I went looking around for a script and came up with a hybrid of my findings.
Simply make a file wherever on your unix system, i called mine tinyurl.sh
Then dump this code in:

1
2
3
4
#!/bin/sh
curl -s http://tinyurl.com/create.php?url=$1 \
| sed -n ’s/.*\(http:\/\/tinyurl.com\/[a-z0-9][a-z0-9]*\).*/\1/p’ \
| uniq | pbcopy

Yep, Thats it. Next i [...]

CakePHP URL Shortener Service Tutorial

08.26.09 // CakePHP // (5) // 2,722 views

If you have just woken up from a 10 year long coma, you might realise that the internet has been dumbed down to 140 characters and services that offer “URL Shortening” are quite widely used. Well today, coma awakened or not, I will be writing out a basic tutorial which will give you an understanding [...]