From e6c20f61387a85a5b15a79b5474f710e5878c6b3 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Tue, 12 Feb 2019 16:45:22 -0500 Subject: Unify *up scripts into one up.sh --- home/.local/bin/hup | 7 ------- home/.local/bin/sup | 8 -------- home/.local/bin/tup | 7 ------- home/.local/bin/up | 12 ------------ 4 files changed, 34 deletions(-) delete mode 100755 home/.local/bin/hup delete mode 100755 home/.local/bin/sup delete mode 100755 home/.local/bin/tup delete mode 100755 home/.local/bin/up (limited to 'home/.local/bin') 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 -- cgit 1.4.1