summary refs log tree commit diff
path: root/home/.local/bin/up
blob: 4f832a3c08d2c25131f9bf7d4f051e688031c83f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e -u

ts=$(date +%s)
rand=$(openssl rand -hex 4)
ext=${1##*.}
url=$(printf 'temp.causal.agency/%x%s.%s' "$ts" "$rand" "$ext")

scp -q "$1" "temp.causal.agency:/usr/local/www/$url"

echo "https://$url"
type pbcopy > /dev/null && printf "https://$url" | pbcopy
src/commit/home/.profile?id=121f4e9bd35c6d6aca29c484fd6f4cc4e65c6b9d&follow=1'>Update nvim MANPAGERJune McEnroe Not sure when this was added. Has the advantage of working properly in more versions of man(1) it seems. 2020-05-06Post "casual update"June McEnroe 2020-05-06Remove bman functionJune McEnroe