bin/pastebin @ dae3f0203507
More
| author | Steve Losh <steve@stevelosh.com> | 
|---|---|
| date | Mon, 28 Aug 2023 14:37:00 -0400 | 
| parents | 476dcce0f104 | 
| children | (none) | 
#!/usr/bin/env bash set -euo pipefail PASTE_SHA=$(ssh paste.stevelosh.com -- 'cat > tmppaste && sha1sum tmppaste | cut -d" " -f1 && mv tmppaste /var/www/paste.stevelosh.com/`sha1sum tmppaste | cut -d" " -f1`') URL="https://paste.stevelosh.com/$PASTE_SHA" echo -n "$URL" | pbcopy echo "Copied $URL to the clipboard."