https://p.hashbang.ca now runs
WWW::Hashbang::Pastebin, a simple pastebin written with Dancer and
DBIx::Class that does nothing but store your text and show it back to you. The only feature beyond that is if you append a
+, you’ll get line numbering (no syntax highlighting). You can use an anchor to jump to any line (click the line number), and the number for that line will be highlighted.
To interact with the pastebin, just POST with paste content in
p and get the URL back in the
X-Pastebin-URL HTTP header (and in the body, so curl-ing will Just Work):
curl -F 'p=<-' http://p.hashbang.ca < /var/log/syslog http://p.hashbang.ca/U
Or, use the Perl client, which provides a command-line tool to do the same thing (and also fetch paste content, given an ID).
Posted: Apr 15, 2012