Hacker's Pastebin (curl to post your pastes)
- Send a
POSTorPUTrequest to paste. cat SomeFile | curl -X PUT --data-urlencode paste@- localhost:8080curl -X PUT --data-urlencode paste@myfile.txt localhost:8080iostat | curl -X PUT --data-urlencode paste@- localhost:8080
-d name=customURIis to be includedcat somefile | curl -X PUT --data-urlencode paste@- -d name=customURI localhost:8080
go get github.com/boopathi/pastebincd $GOPATH/src/github.com/boopathi/pastebingo build- Start your redis-server on
localhost:6379 - Run
./pastebin