Monday, October 18, 2010

Nice pastebin replacement

I just came across this site http://sprunge.us/

To make things easier, append this to your .bashrc file:-
alias psprunge="curl -s -F 'sprunge=<-' http://sprunge.us | xclip -i -selection clipboard"
Now, to post something (make sure you open the new terminal):-
$cat foo.txt | psprunge
$ls | psprunge
The URL will be automatically copied to yout clipboard. And if suppose the URL is http://sprunge.us/XhaL and you want to apply "python" syntax formatting, simply change the URL to http://sprunge.us/XhaL?python.

Nice & easy!

No comments:

Post a Comment