pb icon indicating copy to clipboard operation
pb copied to clipboard

pb; a command line pastebin service helper (12 supported services)

pb

          █
     ▄▀▀▄ █▐▀▄
░ ░ ░█▐░█░█▐░█░ ░ ░
     █▐▄▀ ▀▄▄▀
     █

 pb; a command line pastebin service helper
    {kopimi,CC0} MMXVIII . syntax samurai

         ▟▙
 ▟▒░░░░░░░▜▙▜████████████████████████████████▛
 ▜▒░░░░░░░▟▛▟▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▛
         ▜▛

cred

usage

pb <service> [file|stream]

services

environment variables:

  • UA
    • user-agent string (defaults to some chrome one)

envs for pastebin.com:

  • PB_API_DEV
    • developer api key [required] https://pastebin.com/api#1
  • PB_API_USR
    • user api key [optional] https://pastebin.com/api#8
  • PRIVACY
    • paste visibility [optional]
    • valid values: public|0, unlisted|1, private|2
  • ANON
    • paste w/o a user key even if defined [optional]

examples

  • pb ix ~/.vimrc
    • http://ix.io/1lmr
  • pb 0x0 <(ps aux)
    • https://0x0.st/s0yS.txt
  • dmesg | pb iop
    • https://p.iotek.org/gb2
  • PB_API_DEV=XXXX PRIVACY=0 pb pb /tmp/leak.txt
    • https://pastebin.com/ri2QUGCy
  • UA="Mozilla/5.0 (PlayStation 4 5.55) AppleWebKit/601.2 (KHTML, like Gecko)" pb fiery gnu
    • https://i.fiery.me/huLq

license

kopimi logo

kopimi! in the spirit of freedom of information, i encourage you to fork, modify, change, share, or do whatever you like with this project! ^c^v. or CC0/public domain for you nonbelievers.