Monday, October 18, 2010

Nice pastebin replacement

I just came across this site

To make things easier, append this to your .bashrc file:-
alias psprunge="curl -s -F 'sprunge=<-' | 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 and you want to apply "python" syntax formatting, simply change the URL to

Nice & easy!

No comments:

Post a Comment