Category Archives: Pastebin

Pastebin clipboard support

I had a feature suggestion to add a “copy to clipboard” link to pastebin.com. This was easy for IE, but I had a hard time getting Firefox to play ball. There’s an article at MozillaZine covering the issue, but I wasn’t able to get the technique to work. If anyone knows how, let me know!

I know clipboard access is a potential security vulnerability, but Firefox has the right idea in explicitly granting sites access to the clipboard rather than IE’s rather dumb “yeah, clipboard, here you go!” approach.

Anyway, for the time being, a bit of javascript during onload will figure out if your browser can do clipboard copies and will insert a “copy to clipboard” link when you’re looking at a post. Seems like a handy feature.

There’s also been a few bug fixes since the release a few days ago.

Download pastebin.tar.gz (130 KB)

Pastebin v0.40 released

There hasn’t been a source release of pastebin.com in over a year, and I promised one in April, and here it is!

There’s no new features yet, just what you see on pastebin.com, but the code has been substantially reworked from the last available release. Source is GPL licenced, if you have any questions, add them as comments to this article in case the answers are of benefit to others…

Download pastebin.tar.gz (130 KB)

cl1p.net – a pastebin for files

cl1p.net is a sort of pastebin for files. Just pick a url, like cl1p.net/hereismyfile and upload up to 2M of data.

I’d be uncomfortable with adding uploads to pastebin, seems there would be too much scope for abuse and if it was popular I doubt the Google ads would pay for the bandwidth used.

Still, as I’m going to make it possible for posts to be a little more permanent, it would be nice to offer customised url paths as well as custom domains, so your code snippet can go to http://mydomain.pastebin.com/advanced_sort_routine for example.

Finally, for those eager for the source – it’s coming along nicely, be patient just a little longer!