diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-03-11 20:36:24 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-03-11 20:36:24 -0700 |
commit | edb6b63ef017888e0a80819a4f01d606bfd3123a (patch) | |
tree | 8261d5670cba3ca8fabfca6d4e6f39fd54b5c927 /sh | |
parent | f683848728e3e592144f87a96a4983a141442349 (diff) |
move vip script to fsh
Diffstat (limited to 'sh')
-rw-r--r-- | sh/snippets | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/sh/snippets b/sh/snippets index e204b59..efbbd1e 100644 --- a/sh/snippets +++ b/sh/snippets @@ -54,26 +54,6 @@ EOF cd "$HOME/.bitmonero" || exit monero-blockchain-export --output-file "$XDG_DOWNLOAD_DIR/xmr/monero_blockchain.raw" -# the old way, slower and more code -#nm_device_state="$(nmcli -t --fields device,state device)" -#if echo "$nm_device_state" | grep -q '^wg_ka:connected$'; then -# echo ka -#elif echo "$nm_device_state" | grep -q '^wg_studio:connected$'; then -# echo studio -#else -# echo insp -#fi -case "$(nmcli -t --fields device,state device)" in - *wg_ia:connected*) echo ia;; - *wg_ka:connected*) echo ka;; - *wg_mydefault:connected*) echo mydefault;; - *wg_studio:connected*) echo studio;; - *) echo insp;; -esac -printf 'default: '; curl -m1 ifconfig.co -printf '4: '; curl -4m1 ifconfig.co -printf '6: '; curl -6m1 ifconfig.co - find "$HOME/archive/music" -type f -name '*.wav' -execdir sh -c ' for i; do ffmpeg -i "$i" "$i.flac" && rm "$i" |