Pyurl allows you to run your own URL shortening service, just like TinyURL, bit.ly, is.gd, etc..