terminal:bin
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| terminal:bin [2025/08/16 01:50] – melo | terminal:bin [2026/07/11 23:27] (current) – melo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== my most used local scripts ====== | ====== my most used local scripts ====== | ||
| - | in '' | + | in '' |
| - | ==== vpn ==== | + | ==== whatip |
| - | launch applications excluded from current and future VPN sessions (until window is closed). | + | get my internal & external IP address. results are piped to lolcat because |
| - | + | ||
| - | i have this aliased to ``mvpn`` and ``mftp``, respectively, | + | |
| <code bash> | <code bash> | ||
| - | #!/bin/bash | + | # print internal & external IPs |
| - | + | whatip() { | |
| - | nohup mullvad-exclude | + | # internal |
| + | echo -n " | ||
| + | # external | ||
| + | echo -n " | ||
| + | } | ||
| </ | </ | ||
| - | ==== resize img ==== | + | ==== notif ==== |
| - | this is for when i use [[https:// | + | used after long-running programs like '' |
| <code bash> | <code bash> | ||
| - | #!/bin/bash | + | # to get quick notifs |
| + | # after long commands | ||
| + | notif() { | ||
| + | notify-send "done!" | ||
| + | paplay -q /usr/share/ | ||
| + | spd-say -t female3 -r +25 " | ||
| + | } | ||
| + | </ | ||
| - | WORKDIR=$(pwd) | + | ==== mvpn ==== |
| - | TMPDIR="/ | + | launch applications excluded from current and future VPN sessions (until window is closed). |
| - | cd ${WORKDIR} | + | i have this aliased to '' |
| - | for f in *.jpg; do mv $f ${TMPDIR}; done | + | <code bash> |
| + | # | ||
| - | cd ${TMPDIR} && magick -size 3000x4000 *.jpg -resize 40% "../${f%.*}-resized.jpg" && | + | nohup mullvad-exclude |
| </ | </ | ||
terminal/bin.1755309013.txt.gz · Last modified: by melo
