Command-line client for paste.gentoozh.org. A small POSIX sh script over wastebin's JSON API. Paste code or a log in one command.
Needs curl; it tells you if it's missing and never installs anything itself.
Goes to ~/.local/bin, so make sure that's on your PATH:
mkdir -p ~/.local/bin && curl -fsSL https://gentoozh.org/gzpaste.sh -o ~/.local/bin/gzpaste && chmod +x ~/.local/bin/gzpasteOn Gentoo, add the gentoo-zh overlay, then:
emerge app-text/gzpastesome-cmd | gzpaste # paste stdin, e.g. emerge --info | gzpaste
gzpaste build.log # paste a file
gzpaste -e py app.py # syntax highlighting
gzpaste -b -p PW secret.txt # burn after reading + encrypt
gzpaste del <id> <owner> # delete a pasteOptions:
| Option | What it does |
|---|---|
-e, --ext EXT |
syntax-highlight extension (py, rs, sh, …) |
-x, --expires SECS |
expire after SECS seconds |
-b, --burn |
burn after reading (delete on first view) |
-p, --password PW |
encrypt (read with the wastebin-password header) |
-r, --raw |
print the /raw/ plain-text URL |
-m, --md |
print the /md/ rendered-Markdown URL |
-o, --owner |
also print the owner token (needed to delete later) |
-v, --verbose |
print progress to stderr |
-h, --help |
show help |
-V, --version |
show version |
Messages follow the system locale (Simplified / Traditional / English); GZPASTE_LANG and GZPASTE_URL override the language and the server.
some-cmd | sh -c "$(curl -fsSL https://gentoozh.org/gzpaste.sh)" # paste stdin
curl -fsSL https://gentoozh.org/gzpaste.sh | sh -s -- FILE # paste a fileMIT, see LICENSE.