pb is a helper utility for using 0x0 pastebin services
pb provides an easy-to-use interface for uploading images or piping output to a 0x0 pastebin service. While it comes pre-configured with a specific pastebin, the service endpoint can be overridden.
Upload 'scores.txt' to the pastebin
pb scores.txtUpload piped output to the pastebin
echo 'Secret info' | pbUpload a list of javascript files to the pastebin individually
find . -type f -name '*.js' -print | pb -fUpload a file to a different pastebin endpoint
pb -s http://0x0.st scores.txtRe-upload an image from the web
curl -s https://tildegit.org/_/static/img/gitea-lg.png | pb -e "png"-h | --help) Show this help
-v | --version) Show current version number
-f | --file) Explicitly interpret stdin as filename
-c | --color) Pretty color output
-s | --server server_address) Use alternative pastebin server address
-e | --extension bin_extension) Specify file extension used in the uploadOn GNU systems:
sudo make installOn BSD systems:
The man-path /usr/local/share/man is not indexed by default on openbsd. Using the /usr prefix works around this issue.
doas make PREFIX=/usr installsudo make uninstallOn BSD systems:
doas make PREFIX=/usr uninstallPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.