The other day @josh asked me about a self-hosted URL shortener / Link expander and I didn't really have any experience in that area, but it got me thinking, what is the simplest way to build something like this. Anyway, here's my first try.
https://github.com/phocks/lnkto <- code
https://t.byrd.ws/794691 <- demo URL
Basically it's txt file based. It looks up the short URL and grabs the text file then redirects to the URL in that text file.
Anyway, it works as a proof of concept. Might work on it more in my spare time.