Aaa
Anirudh Oppiliappan x@icyphox.sh
Sat, 19 Jun 2021 10:03:15 +0530
5 files changed,
29 insertions(+),
42 deletions(-)
M
bash/.bashrc.d/90-aliases.bash
→
bash/.bashrc.d/90-aliases.bash
@@ -6,6 +6,7 @@ alias ga="git add"
alias gd="git diff --minimal" alias gl="git log --oneline --decorate --graph" alias vim="nvim" +alias k="kubectl" nvmon() { source ~/.nvm/nvm.sh
M
home/.tmux.conf
→
home/.tmux.conf
@@ -40,25 +40,6 @@ bind -n M-down set -q status off
bind -n M-up set -q status on bind P paste-buffer -# workman layout -#bind-key o next-window -# -#bind-key -T copy-mode-vi n send-keys -X cursor-down -#bind-key -T copy-mode-vi e send-keys -X cursor-up -#bind-key -T copy-mode-vi y send-keys -X cursor-left -#bind-key -T copy-mode-vi o send-keys -X cursor-right -#bind-key -T copy-mode-vi k send-keys -X search-again -#bind-key -T copy-mode-vi K send-keys -X search-reverse -#bind-key -T copy-mode-vi N send-keys -X scroll-down -#bind-key -T copy-mode-vi E send-keys -X scroll-up -#bind-key -T copy-mode-vi j send-keys -X copy-selection -# -#bind-key -T choice-mode n send-keys -X down -#bind-key -T choice-mode e send-keys -X up -#bind-key -T choice-mode c-n send-keys -X choose -# -#bind-key -T edit-mode-vi c-n send-keys -X enter - bind E command-prompt -p "Command:" \ "run \"tmux list-panes -a -F '##{session_name}:##{window_index}.##{pane_index}' \ | xargs -I PANE tmux send-keys -t PANE '%1' Enter\""
M
home/bin/up
→
home/bin/up
@@ -1,31 +1,22 @@
#!/usr/bin/env bash -gen_random() { - chars="abcdefghijklmnopqrstuvwxyz0123456789-~" - for i in { 1 .. 6 }; do - printf '%s' "${chars:RANDOM%${#chars}:1}" - done -} - -random_name="$(gen_random)" - -export LATEST_SCROT="$HOME/pics/scrots/latest.png" +LATEST_SCROT="$HOME/pics/scrots/latest.png" upload() { - file="$(basename "$1")" - ext="${file##*.}" - fullname="$random_name.$ext" - rsync --archive --partial --progress --rsh=ssh "$1" fern:~/www/icy/uploads/"$fullname" - printf '%s\n' "https://x.icyphox.sh/$fullname" - if [ "$(uname)" != "Darwin" ]; then - printf '%s' "https://x.icyphox.sh/$fullname" | xclip -selection clipboard - else - printf '%s' "https://x.icyphox.sh/$fullname" | pbcopy - fi + out="$(curl -s -F "file=@$1" -F "key=$(pw -s fsrv)" https://x.icyphox.sh)" + case "$OSTYPE" in + darwin*) + printf "$out" | pbcopy + ;; + *) + printf "$out" | xclip -sel c + ;; + esac + printf "$out\n" } if [ "$1" == "l" ]; then - upload "$LATEST_SCROT" + upload "$LATEST_SCROT" elif [ "$1" != "l" ]; then - upload "$1" + upload "$1" fi
M
weechat/sec.conf
→
weechat/sec.conf
@@ -17,4 +17,4 @@ salt = on
[data] __passphrase__ = on -znc = "81ED209A2AB443258AC095F93950553A012D4899F046D906AAEF862667B0CD21A7FB230FE4F9F338057A263B59354DB9EA7C19" +znc = "7D15AB451373CBAC40B925A9ED34765A734F45DF32454F40BD94D9B310DD2DA0D527897EA2842449DE6EDDC4D560408FE1EBA0"
M
weechat/weechat.conf
→
weechat/weechat.conf
@@ -392,6 +392,20 @@ title.type = window
[layout] default.buffer = "core;weechat;1" +default.buffer = "irc;server.libera;2" +default.buffer = "irc;libera.##crustaceans;3" +default.buffer = "irc;libera.#go-nuts;4" +default.buffer = "irc;libera.#kubernetes;5" +default.buffer = "irc;libera.#linux;6" +default.buffer = "irc;libera.#lobsters;7" +default.buffer = "irc;libera.#openbsd;8" +default.buffer = "irc;libera.#python;9" +default.buffer = "irc;server.rizon;10" +default.buffer = "irc;rizon.#buddy;11" +default.buffer = "irc;rizon.#bullshit;12" +default.buffer = "irc;rizon.#homescreen;13" +default.buffer = "irc;rizon.nevodka;14" +default.buffer = "irc;rizon.QUiNTZ;15" default.window = "1;0;0;0;irc;rizon.Carp" default.current = on