Plain self-hosted URL shortener

based on one by mattl

To add a URL to this, add a new list item: <li> <a id='short' rel='bookmark' href='https://long.url/lots/of/data'>some user-readable title</a> </li>

If you put this file in a directory (for example 's') as index.html you can simply use https://example.com/s/#coconut

AND/OR, put the shorten.sh script somewhere user runnable, then you can do: $> ssh user@domain 'shorten.sh https://whater.link ShortCode "Some Human Readable Title (or the shortcode will be used)"'

  1. fuckup.solutions/s/#SaintRizz = The Hagiography of St Rhizic Naterjacks
  2. fuckup.solutions/s/#E = The Emperor of Pennsylvania: The MoreWrong Reverend Rhizic Naterjacks