Skip to content

Instantly share code, notes, and snippets.

@vu3rdd
Created October 18, 2013 04:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vu3rdd/7036685 to your computer and use it in GitHub Desktop.
Save vu3rdd/7036685 to your computer and use it in GitHub Desktop.
using sprunge from plan9 commandline
http://sprunge.us is a paste service. It is used by the 9front (a fork of plan9) folks (who hangout in the #cat-v channel on irc.freenode.net). To use sprunge from plan9, one could use the commandline http PUT client, hput.
Let us say, you got an error while compiling stuff. This is what I do. I select the area (using mouse key 1, i.e. left key), use mouse key 2 (i.e. middle ket) to "snarf" (plan9 lingo for copy). I then open acme and click the "paste" tag and "put" (acme lingo for save) the file into the disk.
Now to post the file named say "errors.txt", I do this:
term% hpost -u http://sprunge.us -p http://sprunge.us sprunge@errors.txt # hit enter
http://sprunge.us/EUJF
The second line is the response from sprunge.us with the URL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment