I wrote an article about using a small Snippet and a Chunk as a control file to turn
http://www.timr.ca/RecentArticles/cms/short_url.html into
http://timr.ca/_twb for use on Twitter - or any other place where you want to use a short URL. (Both links connect to the article)
All the code is in the article. The control file is currently maintained ’by hand’ - I will be writing a follow up article and loading the snippet to the repository once I get it all automated.