David Cramer's Blog

Python, Django, and Scale.

Dpaste Was Down

So today, being the usual day, I needed a pastebin, that wasn’t slow, or bogged up with ads and stuff. I hopped on over to dpaste.com as I usually would, to find that the domain was temporarily expired (it’s back up now). Being that the site was down for a little bit, and the project was small, I took an hour to write a pastebin (in PHP, I know).

So, here you have it, with enough features to hold you over, and robust enough to be slashdotted: PasteThat.

The featureset:


  • Pastes are generated with a unique key – I myself don’t want random people reading my pastes :)

  • Pastes never expire – there’s really no storage limitation on my system

  • It uses the Geshi syntax highlighter – which seems slow, so I’ll have to optimize it if people actually use the site

  • It will remember your name and syntax if you let it set a cookie.

  • It automatically adjusts the size of the textarea based on your browser window’s size.

  • You can post follow ups (and with comments as soon as I get home), as well as view followups for a post.


TODO (when I feel like it and am not busy with work)

  • Add tags to each paste

  • Add a public boolean for each paste

  • Allow people to browse public pastes by tags/date/traffic


The simple goal: A robust and simplified pastebin that has many uses.. and I won’t ever have to worry about not being able to use.

Comments