Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Hacker's Pastebin (curl to post your pastes)
Go Shell
Branch: master

Merge pull request #1 from nobelium/master

Merging License information :P
latest commit 4086d6dd27
@boopathi authored
Failed to load latest commit information.
src/pb Shorten :P
static Adding favicon
templates Modifying docs
utils Start stop script
.gitignore Start_Stop script
.gitmodules Adding redigo redis
LICENSE changing year
Makefile Modifying docs
README.md adding license
set_env.sh Initial commit

README.md

pastebin

Hacker's Pastebin (curl to post your pastes)

Usage

Random URI

  • Send a POST or PUT 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

Custom URI

  • -d name=customURI is to be included
  • cat somefile | curl -X PUT --data-urlencode paste@- -d name=customURI localhost:8080

Installation

  • git clone git://github.com/boopathi/pastebin.git
  • cd pastebin
  • source set_env.sh #Sets the environment
  • make && make install

Running a server instance

  • ./bin/pb (or) just pb, 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 use make {start|stop|restart}.

Contributing

  • Clone the repository, make changes and make install && ./bin/pb to re-compile the source and run the server
Something went wrong with that request. Please try again.