pb/README.md

51 lines
1.5 KiB
Markdown
Raw Normal View History

2018-08-15 03:28:59 +00:00
pb ![calver](https://img.shields.io/badge/calver-2018.08.14-22bfda.svg?style=flat-square) ![status](https://img.shields.io/badge/status-working-green.svg?style=flat-square) ![license](https://img.shields.io/badge/license-GPL3-blue.svg?style=flat-square)
------
**pb** is a helper utility for using 0x0 pastebin services
2018-08-15 04:00:46 +00:00
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.
2018-08-15 03:28:59 +00:00
## Usage
```bash
2018-08-15 04:00:46 +00:00
pb scores.txt
Upload 'scores.txt' to the pastebin
echo 'Secret info' | pb
Upload piped output to the pastebin
2018-08-15 03:28:59 +00:00
2018-08-15 04:00:46 +00:00
find . -type f -name '*.js' -print | pb -f
Upload a list of files to the pastebin individually pb -s http://0x0.st scores.txt
Upload a file to a different pastebin endpoint
```
2018-08-15 03:28:59 +00:00
2018-08-15 04:00:46 +00:00
### Options
```bash
-h Show help
2018-08-15 03:28:59 +00:00
-v Show current version number
-f Explicitly interpret stdin as filename
-s server_address Use alternative pastebin server address
```
2018-08-15 03:43:31 +00:00
### Install
`sudo make install`
_Note: On systems without admin access the binary can be run directly from the
git repo, but will lack `man` support and command completion._
### Uninstall
`sudo make uninstall`
2018-08-15 03:28:59 +00:00
## Contributing
Pull requests are welcome. For major changes, please open an issue first to
discuss what you would like to change.
## License
[GPL3](LICENSE)