http://sprunge.us/ を使うと便利。
function netcopy {
curl -F 'sprunge=<-' http://sprunge.us/
}
function netpaste {
curl http://sprunge.us/$1
}
here$ netcopy < hoge.rb
http://sprunge.us/xxx
here$ ssh there
there$ netpaste xxx > hoge.rb
More than 5 years have passed since last update.
http://sprunge.us/ を使うと便利。
function netcopy {
curl -F 'sprunge=<-' http://sprunge.us/
}
function netpaste {
curl http://sprunge.us/$1
}
here$ netcopy < hoge.rb
http://sprunge.us/xxx
here$ ssh there
there$ netpaste xxx > hoge.rb
Register as a new user and use Qiita more conveniently