paste.contrafy.me A small pastebin. Reading is public. Uploading and deleting are owner-only and require a bearer token, so the interesting half of this page is for one person. UPLOAD (multipart, keeps the filename and its extension) curl -H "Authorization: Bearer $PASTE_TOKEN" -F 'f=@file.txt' https://paste.contrafy.me UPLOAD (raw body, name it yourself) curl -H "Authorization: Bearer $PASTE_TOKEN" -H 'Content-Type: text/plain' \ --data-binary @file.txt 'https://paste.contrafy.me/?name=file.txt' Both print the URL of the new paste. Bodies are capped at 5 MB. READ https://paste.contrafy.me/ viewer in a browser, raw text from curl https://paste.contrafy.me/.py same paste, extension only picks the highlighter https://paste.contrafy.me/?raw force the raw bytes DELETE curl -X DELETE -H "Authorization: Bearer $PASTE_TOKEN" https://paste.contrafy.me/ There is no listing. If you lose the URL the paste is gone in every way that matters. SHELL Drop this in .aliases. It shadows paste(1), which you were not using. paste() { if [ -n "$1" ] && [ -f "$1" ]; then curl -sS -H "Authorization: Bearer $PASTE_TOKEN" -F "f=@$1" https://paste.contrafy.me else curl -sS -H "Authorization: Bearer $PASTE_TOKEN" -H 'Content-Type: text/plain' \ --data-binary @- "https://paste.contrafy.me/?name=${1:-stdin.txt}" fi } paste notes.md git diff | paste changes.diff