Roll your own sprunge on your domain
This is inspired by and shares some code with http://sprunge.us.
This is a simple Flask app that uses Pygments to highlight the code. It uses MongoDB to store the snippets. Heroku gives you 240MB of MongoDB storage for free. All you need is a free Heroku account and a bit of time.
$ git clone git://github.com/honza/heroku-sprunge.git
$ cd heroku-sprunge
$ heroku create --stack cedar
$ heroku addons:add mongolab:starter
$ # Add settings: heroku config:add
$ git push heroku master
SPRUNGE_HOST
- the url where this will be hosted (no trailing slash)SPRUNGE_NAME
- the POST payload keySPRUNGE_MONGO_URI
- the MongoLab URL from Heroku (heroku config | grep mongo
)SPRUNGE_MONGO_DB_NAME
- the string after the last slash onSPRUNGE_MONGO_URI
Set these with:
$ heroku config:add KEY=VALUE
BSD, short and sweet.