Xion / gisht

Gists in the shell
GNU General Public License v2.0
27 stars 0 forks source link

Add IRCCloud's pastebin #29

Open Xion opened 6 years ago

Xion commented 6 years ago

This is almost Basic pastebin that automatically creates gists out of things pasted into IRCCloud client by its user. The HTML URL format is something like https://irccloud.mozilla.com/pastebin/fqQ7iPhh/, and the raw version is easily accessible.

One caveat is that in the raw version, the actual code seems to be prefaced with an additional line that says # Pastebin $ID. It's unknown whether # is added smartly as to coincide with the comment syntax of the snippet (which would imply that some language inference is done, and that's unlikely).

Even if so, we don't really want that line as it would screw up with shebang handling, either by the OS or us. So we'll have to remove it when downloading the gist.