summary refs log tree commit diff
path: root/home/.bin/up
blob: 3a25e1124c6d07bd8fbd8c8e24513dc66fff49c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env zsh
set -o errexit -o nounset -o pipefail

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

scp -q "$1" "tmp.cmcenroe.me:/usr/local/www/$url"

echo "https://$url"
type pbcopy > /dev/null && echo -n "https://$url" | pbcopy
>June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe 2021-01-09Add c -t flag to print expression typeJune McEnroe 2021-01-05Update taglineJune McEnroe