Unfortunately http://paste.pocoo.org/ has closed down. This updates the %pastebin magic to use gists instead. The results look like this: https://gist.github.com/2521969
We don't try to use any of the advanced features of gist, such as authenticating to make gists associated with your account. That could be added if there's demand for it, but for now we just send some content and return a URL.
%pastebin pastes to Github gist using API v3.
Change the docstring to github gist maybe.
Do you think a raw_input for an optionnal description could be usefull ?
Since gist allows for a file description, it would be nice to add that as an optional flag (the current default is fine if not given). Naming the file could also be done, but I think that's less important. But I think the description field could in fact be useful.
%pastebin -d option for custom description.
Thanks both, I've made those changes.
And tested them, of course: https://gist.github.com/2522172
Great! Merging now, thanks.