npaste is a simple pastebin for text and images, supporting end-to-end encryption using GPG.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kim Grytøyr c71b083c22
Bump version to 0.6.5
6 months ago
..
README.md First version of CLI script 2 years ago
cli.conf.example Added CLI script config value encryption_key_length 2 years ago
npaste Merge branch 'dev' into 6_restrict_opens 6 months ago
setup.sh Bump version to 0.6.5 6 months ago
v.sh Added additional passphrase security using vaults 2 years ago
vaults Added additional passphrase security using vaults 2 years ago

README.md

CLI script

Put the script somewhere in your PATH and put the config file in ~/.config/npaste/cli.conf.

Use cases

Pipe a program’s output

echo "test" | npaste --age=2h

Could be used to grep some log files and pipe the desired result.

echo "test" | npaste --age=2h | xsel -i -b

Cat

cat | npaste --age=2h

Will give you a “text box”. End with a blank line and Ctrl + D. Cancel at any time with Ctrl + C.

Screenshots with scrot

IMAGE_TEMP_FILE=$(mktemp --suffix=".png") && scrot -s -z $IMAGE_TEMP_FILE && npaste --age=2h $IMAGE_TEMP_FILE | xsel -i -b && rm $IMAGE_TEMP_FILE

Let you select a region on the screen with the mouse and puts the resulting URL into your clipboard.