bin/pastebin @ 31e094924f7e
Slack is a hellscape
author | Steve Losh <steve@stevelosh.com> |
---|---|
date | Mon, 31 Aug 2020 11:53:56 -0400 |
parents | 8d1c68b94471 |
children | 476dcce0f104 |
#!/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/`sha1sum tmppaste | cut -d" " -f1`') URL="https://paste.stevelosh.com/$PASTE_SHA" echo -n "$URL" | pbcopy echo "Copied $URL to the clipboard."