neb/servers/kid/docker-compose.d/custom/nginx/content/bin/client

10 lines
256 B
Text
Raw Normal View History

2023-10-22 16:51:58 +02:00
#!/bin/sh
url="https://bin.ixvd.net"
filepath="$1"
filename=$(basename -- "$filepath")
extension="${filename##*.}"
response=$(curl --data-binary @${filepath:-/dev/stdin} --url $url)
echo "$url$response"".""$extension" | tee >(xclip -selection clipboard)