diff options
author | June McEnroe <june@causal.agency> | 2019-02-12 16:45:22 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-02-12 16:45:22 -0500 |
commit | e6c20f61387a85a5b15a79b5474f710e5878c6b3 (patch) | |
tree | 09f679c946641b22b96e96046e57d6eaad82f372 /home | |
parent | Use a proper fread-realloc loop in hi (diff) | |
download | src-e6c20f61387a85a5b15a79b5474f710e5878c6b3.tar.gz src-e6c20f61387a85a5b15a79b5474f710e5878c6b3.zip |
Unify *up scripts into one up.sh
Diffstat (limited to '')
-rwxr-xr-x | home/.local/bin/hup | 7 | ||||
-rwxr-xr-x | home/.local/bin/sup | 8 | ||||
-rwxr-xr-x | home/.local/bin/tup | 7 | ||||
-rwxr-xr-x | home/.local/bin/up | 12 |
4 files changed, 0 insertions, 34 deletions
diff --git a/home/.local/bin/hup b/home/.local/bin/hup deleted file mode 100755 index 4fc5d7ae..00000000 --- a/home/.local/bin/hup +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -set -eu - -dir=$(mktemp -d) -hi -f html -o document,tab=4 "$@" > "$dir/hi.html" -up "$dir/hi.html" -rm -r "$dir" diff --git a/home/.local/bin/sup b/home/.local/bin/sup deleted file mode 100755 index 33b268c8..00000000 --- a/home/.local/bin/sup +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -set -e -u - -dir=$(mktemp -d) -screencapture -i "$dir/capture.png" -type pngo > /dev/null && pngo "$dir/capture.png" -up "$dir/capture.png" -rm -r "$dir" diff --git a/home/.local/bin/tup b/home/.local/bin/tup deleted file mode 100755 index 543038da..00000000 --- a/home/.local/bin/tup +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -set -e -u - -dir=$(mktemp -d) -cat > "$dir/input.txt" -up "$dir/input.txt" -rm -r "$dir" diff --git a/home/.local/bin/up b/home/.local/bin/up deleted file mode 100755 index 4f832a3c..00000000 --- a/home/.local/bin/up +++ /dev/null @@ -1,12 +0,0 @@ -#!/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 |