I would like to use http://pastie.caboo.se/paste/4703 from the command
line, but the syntax escapes me
[email protected] ~/Desktop $
[email protected] ~/Desktop $ cat pbpaste.rb
#!/bin/sh
With a little automator workflow, quicksilver magic, and a judicious
placement of pbpaste on the next line you can paste with almost no
effort at
all.
url=$(curl http://pastie.caboo.se/pastes/create
-H âExpect:â
-F âpaste[parser]=plaintextâ
-F âpaste[body]=<-â
-s -L -o /dev/null -w â%{url_effective}â)
echo -n â$urlâ | pbcopy
echo â$urlâ
[email protected] ~/Desktop $
[email protected] ~/Desktop $ ruby pbpaste.rb
how do I generate a URL like wgetpaste does?
[email protected] ~/Desktop $
[email protected] ~/Desktop $
[email protected] ~/Desktop $ wgetpaste
ahhh, this one works fine from gentoo.
Your paste can be seen here: http://rafb.net/p/UpiiMu57.html
[email protected] ~/Desktop $
thanks,
Thufir