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/05/28 00:05] – [resize img] melo | terminal:bin [2025/08/16 05:15] (current) – melo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== my most used local scripts ====== | ====== my most used local scripts ====== | ||
| - | in '' | + | in '' | 
| - | ==== mterm && mftp ==== | + | ==== whatip  | 
| - | launch a terminal or filezilla window excluded from current and future VPN sessions (until window is closed) | + | get my internal & external IP address. results are piped to lolcat because i like cute things ok | 
| <code bash> | <code bash> | ||
| - | #!/bin/bash | + | # print internal & external IPs | 
| + | whatip() { | ||
| + | # internal | ||
| + | 	echo -n " | ||
| + | # external | ||
| + | 	echo -n " | ||
| + | } | ||
| + | </code> | ||
| - | nohup mullvad-exclude kitty > /dev/null 2>&1 & | + | ==== notif ==== | 
| + | |||
| + | used after long-running programs like '' | ||
| + | |||
| + | <code bash> | ||
| + | # to get quick notifs | ||
| + | # after long commands | ||
| + | notif() { | ||
| + | 	notify-send " | ||
| + | 	aplay -q /usr/share/ | ||
| + | 	spd-say -t female3 -r +25 " | ||
| + | } | ||
| </ | </ | ||
| + | |||
| + | ==== mvpn ==== | ||
| + | |||
| + | launch applications excluded from current and future VPN sessions (until window is closed). | ||
| + | |||
| + | i have this aliased to '' | ||
| <code bash> | <code bash> | ||
| #!/bin/bash | #!/bin/bash | ||
| - | nohup mullvad-exclude  | + | nohup mullvad-exclude  | 
| </ | </ | ||
| ==== resize img ==== | ==== resize img ==== | ||
| - | |||
| - | kind of doesn' | ||
| this is for when i use [[https:// | this is for when i use [[https:// | ||
| Line 34: | Line 56: | ||
| cd ${WORKDIR} | cd ${WORKDIR} | ||
| - | for f in *.jpg; do mv $f ${TMPDIR}  | + | for f in *.jpg; do mv $f ${TMPDIR}; done | 
| + | |||
| + | cd ${TMPDIR} && magick -size 3000x4000  | ||
| </ | </ | ||
terminal/bin.1748390702.txt.gz · Last modified:  (external edit)
                
                