Skip to content

Cloudxtreme/pastebin-3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Hacker's Pastebin (curl to post your pastes)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 50.7%
  • Shell 24.8%
  • HTML 20.7%
  • Makefile 3.8%