dots-of-war/eggs/scripts/0x0.sh

4 lines
182 B
Bash
Raw Permalink Normal View History

2024-12-05 21:10:22 +00:00
#!/bin/sh
[ -f "${1}" ] && op=cat
${op:-echo} "${1:-`cat -`}" | curl -sF f='@-' -F expire=129600 'https://oshi.at' | tail -n 1 | cut -d ' ' -f 2 | tee /dev/stderr | xclip -sel clip