terminal:bin
                Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| terminal:bin [2025/05/27 23:53] – created 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  | + | 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> | ||
| + | # to get quick notifs | ||
| + | # after long commands | ||
| + | notif() { | ||
| + | 	notify-send " | ||
| + | 	aplay -q / | ||
| + | 	spd-say -t female3 -r +25 " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ==== mvpn ==== | ||
| + | |||
| + | launch applications  | ||
| + | |||
| + | i have this aliased to '' | ||
| <code bash> | <code bash> | ||
| #!/bin/bash | #!/bin/bash | ||
| - | nohup mullvad-exclude  | + | nohup mullvad-exclude  | 
| </ | </ | ||
| + | |||
| + | ==== resize img ==== | ||
| + | |||
| + | this is for when i use [[https:// | ||
| <code bash> | <code bash> | ||
| #!/bin/bash | #!/bin/bash | ||
| - | nohup mullvad-exclude filezilla > /dev/null 2>&1 & | + | WORKDIR=$(pwd) | 
| + | |||
| + | TMPDIR=" | ||
| + | |||
| + | cd ${WORKDIR} | ||
| + | |||
| + | for f in *.jpg; do mv $f ${TMPDIR}; done | ||
| + | |||
| + | cd ${TMPDIR}  | ||
| </ | </ | ||
terminal/bin.1748389981.txt.gz · Last modified:  (external edit)
                
                