You are not logged in.
Pages: 1
I wrote up a python script to post a file to http://pastebin.archlinux.org/. First tried it in Perl, but it kept sending only one line of the file and the regex to get the url wasn't working. So I did it in python instead. It resides here posted their by itself.
~ Jamie / yankees26
UPDATES
Version 0.2 : DEAD Link
Version 1.0 : DEAD Link
Last edited by yankees26 (2007-04-01 12:32:52)
Offline
Updated to version 0.2.
Now writes some info to ~/.nopaste.log so for example, say you lose a file but had pasted it to pastebin at some point you can see what the URL on pastebin is.
Here it is. (Dead)
Last edited by yankees26 (2007-04-01 12:33:04)
Offline
Updated to version 1.0 (wow that was fast)
Takes username as an argument and type of file. So say you want to upload pythonfile.py with syntax highlighting as bob:
$ nopaste -u bob -t python pythonfile.py
Notice it is not Python but python, didn't work with capitalized P.
Here it is. (Ooooooo, green ) (dead)
Last edited by yankees26 (2007-04-01 12:33:17)
Offline
Should have set those to "forever"
Offline
Offline
Probably should have. Its updated in the new post. And here: http://pastebin.archlinux.org/1501 (dead)
Last edited by yankees26 (2007-04-01 12:33:31)
Offline
Okay, I think it might have been a bug in my code, considering I used my script to paste the script, which I think should be fixed now, which means it will successfully post forever (I hope)
Offline
I Modified the script so you can specify a pastebin URL, also changed the default expiry to a month
Offline
Pages: 1