A script for hosting your own Twitter image service (à la TwitPic, etc.). Based on Ryan Petrich's PHP-based one but rewritten in Perl using Mojolicious.
- Install Mojolicious (you may need to have your own Perl installed using Perlbrew first if you're on a shared hosting service like Dreamhost and the like, in which case change the shebang in the first line of this script to point to where you installed your Perl).
- Copy this script and the included .htaccess to the root level of your web server.
- Create a "public" directory, you may or may not need to chmod 777 depending on the server setup.
- Add the following as a custom URL for image upload service in your favourite Twitter client: http://yourdomain.com/upload?p=password