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:51] – 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 '' |
| - | === notif === | + | ==== whatip ==== |
| - | used after long-running programs like ``watch`` or ``dig`` because i will easily forget about something i'm waiting on like that. | + | get my internal & external IP address. results are piped to lolcat because i like cute things ok |
| + | |||
| + | <code bash> | ||
| + | # print internal & external IPs | ||
| + | whatip() { | ||
| + | # internal | ||
| + | echo -n " | ||
| + | # external | ||
| + | echo -n " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== notif ==== | ||
| + | |||
| + | used after long-running programs like '' | ||
| <code bash> | <code bash> | ||
| Line 12: | Line 26: | ||
| notif() { | notif() { | ||
| notify-send " | notify-send " | ||
| - | aplay -q / | + | paplay |
| spd-say -t female3 -r +25 " | spd-say -t female3 -r +25 " | ||
| } | } | ||
| </ | </ | ||
| - | ==== vpn ==== | + | ==== mvpn ==== |
| launch applications excluded from current and future VPN sessions (until window is closed). | launch applications excluded from current and future VPN sessions (until window is closed). | ||
| - | i have this aliased to ``mvpn`` | + | i have this aliased to '' |
| <code bash> | <code bash> | ||
| - | #!/bin/bash | + | #!/usr/bin/env bash |
| - | + | ||
| - | nohup mullvad-exclude $1 > /dev/null 2>&1 & | + | |
| - | </ | + | |
| - | + | ||
| - | ==== resize img ==== | + | |
| - | + | ||
| - | this is for when i use [[https:// | + | |
| - | + | ||
| - | <code bash> | + | |
| - | #!/bin/bash | + | |
| - | + | ||
| - | WORKDIR=$(pwd) | + | |
| - | + | ||
| - | TMPDIR="/ | + | |
| - | + | ||
| - | cd ${WORKDIR} | + | |
| - | + | ||
| - | for f in *.jpg; do mv $f ${TMPDIR}; done | + | |
| - | cd ${TMPDIR} && magick -size 3000x4000 *.jpg -resize 40% "../${f%.*}-resized.jpg" && | + | nohup mullvad-exclude |
| </ | </ | ||
terminal/bin.1755309102.txt.gz · Last modified: by melo
