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:04] – 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 '' |
| - | ==== 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() { | |
| - | nohup mullvad-exclude kitty > /dev/null 2>&1 & | + | # internal |
| + | echo -n " | ||
| + | # external | ||
| + | echo -n " | ||
| + | } | ||
| </ | </ | ||
| + | |||
| + | ==== notif ==== | ||
| + | |||
| + | used after long-running programs like '' | ||
| <code bash> | <code bash> | ||
| - | #!/bin/bash | + | # to get quick notifs |
| - | + | # after long commands | |
| - | nohup mullvad-exclude filezilla > /dev/null 2>&1 & | + | notif() { |
| + | notify-send " | ||
| + | paplay -q /usr/share/ | ||
| + | spd-say -t female3 -r +25 " | ||
| + | } | ||
| </ | </ | ||
| - | ==== resize img ==== | + | ==== mvpn ==== |
| - | kind of doesn' | + | launch applications excluded from current and future VPN sessions (until window is closed). |
| - | this is for when i use [[https:// | + | i have this aliased |
| <code bash> | <code bash> | ||
| - | #!/bin/bash | + | #!/usr/bin/env bash |
| - | + | ||
| - | WORKDIR=$(pwd) | + | |
| - | + | ||
| - | TMPDIR="/ | + | |
| - | + | ||
| - | cd ${WD} | + | |
| - | for f in *.jpg; do mv $f ${TMPDIR} && cd ${TMPDIR} && magick | + | nohup mullvad-exclude "$1" |
| </ | </ | ||
terminal/bin.1748390671.txt.gz · Last modified: (external edit)
