💾 Archived View for mkl-wlod.srht.site › repo › tree › scripts › .local › bin › 0x0.txt captured on 2022-03-01 at 15:59:07. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2022-06-04)

-=-=-=-=-=-=-

!/bin/sh

Original repository

https://git.lapacz-kornel.dev/dotfiles

filename=$1

if [ -z "$filename" ]; then

echo "usage: 0x0 filename"

exit 1

fi

if [ ! -f "$filename" ]; then

echo "file $filename doesn't exist"

exit 1

fi

url=$(curl -F"file=@$filename" https://0x0.st)

[ -z "$url" ] && exit 1

echo "$url"

echo "$url" | xclip -selection clipboard