aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sh/snippets20
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"