0x0 pastebin utility
Go to file
James Tomasino a6cea6f11a
continuous-integration/drone/push Build is passing Details
manpage missing -e in synopsis
2020-10-27 01:59:49 +00:00
.drone.yml adds drone tests for shellcheck 2020-10-23 18:31:15 +00:00
LICENSE added readme and licens 2018-08-14 23:28:59 -04:00
Makefile swaps grep for awk in make help 2020-09-05 18:05:16 +00:00
README.md adds filetype override for standard input binary files 2020-10-27 01:48:46 +00:00
pb adds filetype override for standard input binary files 2020-10-27 01:48:46 +00:00
pb.1 manpage missing -e in synopsis 2020-10-27 01:59:49 +00:00

README.md

pb calver Build Status license

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.

Usage Examples

Upload 'scores.txt' to the pastebin

pb scores.txt

Upload piped output to the pastebin

echo 'Secret info' | pb

Upload a list of javascript files to the pastebin individually

find . -type f -name '*.js' -print | pb -f

Upload a file to a different pastebin endpoint

pb -s http://0x0.st scores.txt

Shorten a URL

pb -u https://google.com

Re-upload an image from the web

curl -s https://tildegit.org/_/static/img/gitea-lg.png | pb -e "png"

Options

  -h                        Show this help
  -v                        Show current version number
  -f                        Explicitly interpret stdin as filename
  -c                        Pretty color output
  -u                        Shorten URL
  -s server_address         Use alternative pastebin server address
  -e bin_extension          Specify a binary file extension used in the upload

Install

On GNU systems:

sudo make install

On 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 install

Uninstall

sudo make uninstall

On BSD systems:

doas make PREFIX=/usr uninstall

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

GPL3