Hacker's Pastebin (curl to post your pastes)
- Send a
POST
orPUT
request to paste. cat SomeFile | curl -X PUT --data-urlencode paste@- localhost:8080
curl -X PUT --data-urlencode paste@myfile.txt localhost:8080
iostat | curl -X PUT --data-urlencode paste@- localhost:8080
-d name=customURI
is to be includedcat somefile | curl -X PUT --data-urlencode paste@- -d name=customURI localhost:8080
git clone git://github.com/boopathi/pastebin.git
cd pastebin
source set_env.sh
#Sets the environmentmake && make install
./bin/pb
(or) justpb
, as./bin/
will be in your$PATH
.- You can use the
-p
to specify port number.sudo ./bin/pb -p 80
- To run forever, configure Port in
utils/pastebin
and usemake {start|stop|restart}
.
- Clone the repository, make changes and
make install && ./bin/pb
to re-compile the source and run the server