Skip to content

kstarikov/snapaste

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snapaste

A snapping pastebin implementation. Whatever text data posted to it can only be accessed once.

Works through HTTPS only.

Requirements

Erlang R16-R18.

SSH certificate and key for your domain.

Installation

git clone https://github.com/kstarikov/snapaste.git
cd snapaste
make

Running

Edit the ebin/snapaste.app and set your host, port and paths to your certificate files. Then run

make run

Example usage

Assuming that Snapaste is running at localhost:8443

Post data:

echo "USSR is going to attack USA" | curl -XPOST -d @- https://localhost:8443

Get a response:

201 Created
https://localhost:8443/cnjAOLEMuCft7UNUatzJPye4V6ToPu2zRWPL996QvGOmfsDqDLKmEwx25DZfZKtR

Access the URL:

curl -k https://localhost:8443/cnjAOLEMuCft7UNUatzJPye4V6ToPu2zRWPL996QvGOmfsDqDLKmEwx25DZfZKtR
USSR is going to attack USA

Access the URL again:

curl -k https://localhost:8443/cnjAOLEMuCft7UNUatzJPye4V6ToPu2zRWPL996QvGOmfsDqDLKmEwx25DZfZKtR
404 Not Found

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published