From e9834a80ca32c65c8341558ce73c46ff5319e628 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Tue, 3 Apr 2018 12:54:48 -0400 Subject: Move home bins to ~/.local/bin Also replaced ~/.cargo/bin with a symlink to ~/.local/bin to avoid having to have that in $path as well. --- home/.local/bin/sup | 8 ++++++++ home/.local/bin/tup | 7 +++++++ home/.local/bin/up | 12 ++++++++++++ 3 files changed, 27 insertions(+) create mode 100755 home/.local/bin/sup create mode 100755 home/.local/bin/tup create mode 100755 home/.local/bin/up (limited to 'home/.local') diff --git a/home/.local/bin/sup b/home/.local/bin/sup new file mode 100755 index 00000000..22f2b85e --- /dev/null +++ b/home/.local/bin/sup @@ -0,0 +1,8 @@ +#!/usr/bin/env zsh +set -o errexit -o nounset -o pipefail + +dir=$(mktemp -d) +screencapture -i "$dir/capture.png" +pngo "$dir/capture.png" +up "$dir/capture.png" +rm -r "$dir" diff --git a/home/.local/bin/tup b/home/.local/bin/tup new file mode 100755 index 00000000..29af9b0a --- /dev/null +++ b/home/.local/bin/tup @@ -0,0 +1,7 @@ +#!/usr/bin/env zsh +set -o errexit -o nounset -o pipefail + +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 new file mode 100755 index 00000000..43b1929b --- /dev/null +++ b/home/.local/bin/up @@ -0,0 +1,12 @@ +#!/usr/bin/env zsh +set -o errexit -o nounset -o pipefail + +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 && echo -n "https://$url" | pbcopy -- cgit 1.4.1 log/chat.c'>
path: root/chat.c (unfollow)
Commit message (Expand)Author
2019-09-16Remove -W WEBIRC optionJune McEnroe
2019-09-16Use /etc/ssl/cert.pem in chrootJune McEnroe
2019-09-16Bump .so versions in chrootJune McEnroe
2019-09-16Set default nick to USER unless -PJune McEnroe
2019-09-16Add restricted modeJune McEnroe
2019-07-27Use braces in MakefileJune McEnroe
2019-07-27Make copyright headers consistentJune McEnroe
2019-07-27Mark sig_atomic_t array volatileJune McEnroe
2019-07-02Add /listJune McEnroe
2019-07-02Deal with ~users in colorGenJune McEnroe
2019-07-02Clean up input parameter handlingJune McEnroe
2019-07-02Split /raw and /quoteJune McEnroe
2019-07-02Add -k option for joining with keysJune McEnroe
2019-07-02Add optional key to /joinJune McEnroe
2019-07-02Restart process in sandmanJune McEnroe
2019-02-27Add /move commandJune McEnroe
2019-02-26Add M-/ to switch to previously active windowJune McEnroe
2019-02-25Move nick and tag coloring to color.cJune McEnroe
2019-02-25Add M-l to list the logJune McEnroe
2019-02-25Output raw to standard error if it is not a terminalJune McEnroe
2019-02-25Update tag colorsJune McEnroe
2019-02-25Add color to tagsJune McEnroe
2019-02-25Remove tag X macros againJune McEnroe
2019-02-25Add M-a to switch to hot or unread windowJune McEnroe
2019-02-25Refactor uiReadJune McEnroe
2019-02-24Scroll by full pages with PageUp/PageDownJune McEnroe
2019-02-23Clarify /window documentationJune McEnroe
2019-02-23Use first word of params in input commandsJune McEnroe
2019-02-23Add C-n and C-p key bindings to switch windowsJune McEnroe
2019-02-23Change example command to join #ascii.town on freenodeJune McEnroe
2019-02-23Call def_prog_mode after termNoFlowJune McEnroe
2019-02-22Move IRC formatting reset to C-sJune McEnroe
2019-02-22Disable terminal flow controlJune McEnroe
2019-02-22Bind up and down arrows to scrollJune McEnroe
2019-02-22Remove topic TODOJune McEnroe
2019-02-22Add /znc commandJune McEnroe
2019-02-22Update status line after scrolling and term eventsJune McEnroe
2019-02-22Reorganize input.cJune McEnroe
2019-02-22Fix name of <raw> window in man pageJune McEnroe
2019-02-22Rename global tags with angle bracketsJune McEnroe
2019-02-22Show status window while connectingJune McEnroe
2019-02-22Reorganize UI code for the umpteenth timeJune McEnroe
2019-02-21Replace "view" with "window"June McEnroe
2019-02-21Remove ROT13June McEnroe
2019-02-21Clean up man pageJune McEnroe
2019-01-26Draw UI before connectingJune McEnroe
2019-01-25Avoid unused variable warnings with getyxJune McEnroe
2019-01-25Add GNU/Linux build instructionsJune McEnroe