Hacker News new | past | comments | ask | show | jobs | submit login
Pastebin the way god intended it be (sprunge.us)
25 points by shabda on Aug 22, 2008 | hide | past | favorite | 8 comments



Indeed, this is good. However, it's sometimes also good to be able to actually paste data. Must we be denied both?


Here's the HTML code you need for that:

http://sprunge.us/KUEY?html


Ok, 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.


genius stuff. just needs a little aliasing.

alias pastebin="curl -F 'sprunge=<-' http://sprunge.us"

cat <file> | pastebin

now that's very usable


The domain name is a nice Futurama reference.


[deleted]


From 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/ULaS

shabda@shabda-laptop:~/pastebin$ firefox http://sprunge.us/ULaS?python


You probably shouldn't share your secret key. SECRET_KEY = 'blahblahblah'

It is used to seed hashes.


Should URL be case-sensitive?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: