A command-line pastebin
#1
When you need to quickly post the output of a command or share a text file, you can always use sprunge.us service. It's a free command-line pastebin.

Commands should be piped like this:

COMMAND | curl -F 'sprunge=<-' http://sprunge.us

Examples:

Code:
$ cat file | curl -F 'sprunge=<-' http://sprunge.us
$ ls -l | curl -F 'sprunge=<-' http://sprunge.us

You'll get back a URL which looks like:
http://sprunge.us/ABCD

If you're sharing a code and need line numbering and syntax highlighting just append '?' to your URL followed by the language your file is written in, as follow:


http://sprunge.us/ABCD?c
http://sprunge.us/ABCD?bash
and so on.

Here is a list of supported languages: ? ? ?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
http://pygments.org/docs/lexers/
? ?
Stuff gets automatically cleared out as their disk fills.
As with all pastebins, make sure you don't share private data

#2

Code:
$ wc -c <<< "curl -F 'sprunge=<-' http://sprunge.us"
39
$ wc -c <<< wgetpaste
10

Thanks to FreeVPS for the, er, free VPS 7!




Users browsing this thread: 1 Guest(s)

Switch to mobile version

Sponsors: Ftpit - ZXPlay - GalaxyHostPlus - Verelox- HostUS - HostMada - Host4Fun - Evolution-Host - NodeBlade - HostDare - VPSMost


BitCoin donations: 1DQxbstaTb5SWk6QC2gFeQUTFR64JX4cEo