# guile-pastebin Minimalist pastebin written in Guile Scheme. ## Usage Ensure Guile 3.0.9 (or later) is installed and execute the command: ``` ./run pastebin data ``` Then navigate a web browser at `http://localhost:8080`. The full `pastebin` command synopsis is as follows: ``` pastebin [OPTIONS] ``` `DATA_DIR` is a writable filesystem location to store pastes. Supported `OPTIONS` are following: * `--addr`: IPv4 address to listen on (default: `127.0.0.1`). * `--port`: port number to run pastebin on (default: `8080`). * `--css-url`: URL of a CSS file (default: no stylesheet). ## API - `/` -- show top 5 paste list - `/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 ## Paste a file from command line Paste a text file from command line and get a URL back: `curl -F "text=. It is currently occasionally maintained by Evgeny Pisemsky at . ## Copying SPDX-FileCopyrightText: 2021 Li Ian-Xue (b4283) SPDX-FileCopyrightText: 2025 Evgeny Pisemsky SPDX-License-Identifier: GPL-3.0-only