dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 1de0e011f8e291b40723dfe84488195abc447730
parent dfab6b0a0c12d68de2231d5d9b06a6c66278c01f
Author: hhvn <dev@hhvn.uk>
Date:   Thu, 23 Dec 2021 23:01:04 +0000

.s/b/hlpaste: bigger uuid

Diffstat:
M.scripts/bin/hlpaste | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.scripts/bin/hlpaste b/.scripts/bin/hlpaste @@ -3,8 +3,8 @@ # hlpaste [file extension] < /path/to/file cp /dev/stdin /tmp/hlpaste -id=$(mktemp -u paste/XXXXXXXXX) +id=$(mktemp -u p/XXXXXXXXXXXXXX) gtype=$(file /tmp/hlpaste | tr '[:upper:]' '[:lower:]' | sed -E 's~.*(binary|video|audio).*~9~;s~.*image.*~I~' | grep -o '^.$' || echo "0") -scp /tmp/hlpaste hlirc.net:/var/gopher/$id.${1:-txt} -printf "gopher://hlirc.net/$gtype/$id.${1:-txt}" | tee /dev/stderr | xclip +scp /tmp/hlpaste hlirc.net:/var/gopher/$id.${1:-txt} >/dev/null +printf "gopher://hlirc.net/$gtype/$id.${1:-txt}\n" | tee /dev/stderr | tr -d '\n' | xclip