Paste
Paste is a simple pastebin. It allows simple, anonymous uploading of snippets of text up to 100 kilobytes in size. It accepts POST requests to https://eigenstate.org/newpaste, and returns the URL of the paste.
Usage
Pasting is done via :
cat data | curl --data-binary=@-
A script to make this more convenient is below:
#!/bin/sh
if [ -z "$@" ]; then
curl --data-binary=@- https://eigenstate.org/newpaste
else
for f in $@; do
curl --data-binary @$f https://eigenstate.org/newpaste
done
fi
Code
Code is available on http://git.eigenstate.org/ori/paste.git
Setting up your own
Set it up as a CGI script in your favorite HTTP server. The environment variables it uses are below:
PASTE_DIR
The location to store the pastes. Each paste is stored in a single file
PASTE_URLBASE
The url to prepend to the paste name. This affects the output returned to the user
The HTTP server should be configured to set the Content-Type
header
of files served from the paste directory to text/plain
.