4 ms·
Pastebin the way god intended it be
- deleted 18y ago[deleted]
- shabda 18y agoFrom the site, DESCRIPTION add ?<lang> to url for line numbers and syntax highlighting shabda@shabda-laptop:~/pastebin$ cat settings.py | curl -F 'sprunge=<-' http://sprunge.us http://sprunge.us http://sprunge.us/ULaS http://sprunge.us/ULaS shabda@shabda-laptop:~/pastebin$ firefox http://sprunge.us/ULaS?python http://sprunge.us/ULaS?python
- mrtron 18y agoYou probably shouldn't share your secret key. SECRET_KEY = 'blahblahblah' It is used to seed hashes.
- ajross 18y agoIndeed, this is good. However, it's sometimes also good to be able to actually paste data. Must we be denied both?
- ks 18y agoHere's the HTML code you need for that: http://sprunge.us/KUEY?html http://sprunge.us/KUEY?html
- Raphael 18y agoThe domain name is a nice Futurama reference.
- staticshock 18y agogenius stuff. just needs a little aliasing. alias pastebin="curl -F 'sprunge=<-' http://sprunge.us http://sprunge.us" cat <file> | pastebin now that's very usable
- btw0 18y agoShould URL be case-sensitive?
- vito 18y agoOk, now it's extra useful: paste () { (pbpaste | curl -s -F "sprunge=<-" http://sprunge.us | xargs echo -n && echo -n "?"$1) | pbcopy; } Usage: `paste <lang>` fpaste () { (cat $1 | curl -s -F "sprunge=<-" http://sprunge.us | xargs echo -n && echo -n "?"$2) | pbcopy; } Usage: `fpaste <file> <lang>` Pardon the lack of bash skills.