Rustypaste - file and paste sharing at https://rp.zebra.in.net ┬─┐┬ ┬┌─┐┌┬┐┬ ┬┌─┐┌─┐┌─┐┌┬┐┌─┐ ├┬┘│ │└─┐ │ └┬┘├─┘├─┤└─┐ │ ├┤ ┴└─└─┘└─┘ ┴ ┴ ┴ ┴ ┴└─┘ ┴ └─┘ Uploads and deletions require an Authorization token issued by the operator. Ordinary download links are public and shareable. Protected uploads return a per-file password that is then required to download. EXAMPLES - curl upload curl -F 'file=@notes.txt' -H "Authorization: UPLOAD_TOKEN" https://rp.zebra.in.net protected file curl -F 'protected=@secret.txt' -H "Authorization: UPLOAD_TOKEN" https://rp.zebra.in.net the response adds "Password: ..." - then download with curl -u :PASSWORD https://rp.zebra.in.net/ or curl -H "Authorization: Bearer PASSWORD" https://rp.zebra.in.net/ one-shot file curl -F 'oneshot=@trick.txt' -H "Authorization: UPLOAD_TOKEN" https://rp.zebra.in.net shorten a URL curl -F 'url=https://example.com/a/very/long/link' -H "Authorization: UPLOAD_TOKEN" https://rp.zebra.in.net custom expiry append -H "expire: 10min" (units: min, h, d, w, M, y) download curl https://rp.zebra.in.net/ (no token needed) list uploads curl -H "Authorization: UPLOAD_TOKEN" https://rp.zebra.in.net/list private file curl -u :PASSWORD https://rp.zebra.in.net/ (protected files only) delete curl -X DELETE -H "Authorization: DELETE_TOKEN" https://rp.zebra.in.net/ EXAMPLES - Nushell built-in http commands upload http post --content-type multipart/form-data --headers [Authorization $token] https://rp.zebra.in.net/ { file: (open -r notes.txt | into binary) } protected file use field {protected: (open -r secret.txt | into binary)} instead; the response adds "Password: ..." - then download with http get --headers [Authorization $"Bearer ($password)"] https://rp.zebra.in.net/ one-shot file use field {oneshot: (open -r trick.txt | into binary)}; the link works exactly once shorten a URL pass { url: "https://example.com/a/very/long/link" } as the only field download http get https://rp.zebra.in.net/ | save notes.txt (no token needed) list uploads http get --headers [Authorization $token] https://rp.zebra.in.net/list | from json delete http delete --headers [Authorization $token] https://rp.zebra.in.net/ Replace UPLOAD_TOKEN/DELETE_TOKEN or $token with the operator's secrets and / with a returned path. Uploading without a token answers "unauthorized". Maximum request size: 104857600 bytes. Default expiry: 7d. The expire header can select a different duration. Expired files are removed hourly.