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
c/commit/bin/glitch.c?id=d5262930a4c91d1a4f021dc69056194818bc721d&follow=1'>Add -m option to glitchJune McEnroe 2018-07-16malloc deflate buffer in glitchJune McEnroe 2018-07-16malloc the deflate buffer in pngoJune McEnroe The stack is a baby. 2018-07-05Add shed bloodJune McEnroe