Slim shortener is an open-sourced URL shortener you can install quickly on your own VPS.