|
1 year ago | |
---|---|---|
.. | ||
README.md | 3 years ago | |
cli.conf.example | 3 years ago | |
npaste | 1 year ago | |
setup.sh | 1 year ago | |
v.sh | 3 years ago | |
vaults | 3 years ago |
Put the script somewhere in your PATH
and put the config file in ~/.config/npaste/cli.conf
.
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 | npaste --age=2h
Will give you a “text box”. End with a blank line and Ctrl + D
. Cancel at any time with Ctrl + C
.
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.