# guile-pastebin A very simple pastebin written in Guile Scheme. ## How to run Execute `guile -L . -e run-pastebin main.scm ` and then browse to `http://localhost:8080`. `` is a writable filesystem location you want to use to store pastes. If it doesn't exist, it will be created. It was tested on Guile 2.2.7 and 3.0.7. Many thanks to the Guile development team for such great software. ## API - `/post` -- create paste - method: POST only - type: `multipart/form-data` - fields - `text` -- the paste content - `showUrl=1` -- to show the raw URL after paste - `/raw/` -- get paste content - method: GET only - Anything else -- show top 5 paste list ## Paste a file from command line Paste a text file from command line and get a URL back: `curl -F "text= ProxyPass "http://your_address:8080" ProxyPassReverse "http://your_address:8080" ProxyHTMLEnable On ProxyHTMLDocType "" ProxyHTMLURLMap "/" "/pastebin/" ```