Commit fe6fd6c
xxwhirlpool
·
2026-06-20 15:33:53 -0400 EDT
parent 5eac5c8
add back `portfree` fn to bashrc, add `geticon`
2 files changed,
+25,
-0
+11,
-0
| ... | ... | @@ -105,6 +105,7 @@ alias unfuckwifi="sudo systemctl restart NetworkManager" | |
| 105 | 105 | alias uptime="uptime -p" | |
| 106 | 106 | alias irc="senpai" | |
| 107 | 107 | alias xmpp="profanity" | |
| 108 | + | alias email="neomutt" | |
| 108 | 109 | alias ip="ip -c" | |
| 109 | 110 | ||
| 110 | 111 | # some cd bookmarks |
| ... | ... | @@ -253,6 +254,16 @@ bitrate() { | |
| 253 | 254 | echo "$(file "$1" | sed 's/.*, \(.*\)kbps.*/\1/' | tr -d " " )" kbps | |
| 254 | 255 | } | |
| 255 | 256 | ||
| 257 | + | portfree() { | |
| 258 | + | while | |
| 259 | + | port=$(shuf -n 1 -i 1024-65535) | |
| 260 | + | netstat -atun | grep -q "$port" | |
| 261 | + | do | |
| 262 | + | continue | |
| 263 | + | done | |
| 264 | + | echo -n "$port" | |
| 265 | + | } | |
| 266 | + | ||
| 256 | 267 | ###################################### | |
| 257 | 268 | # misc | |
| 258 | 269 | ###################################### |
+14,
-0
| ... | ... | @@ -0,0 +1,14 @@ | |
| 1 | + | #!/usr/bin/env bash | |
| 2 | + | # | |
| 3 | + | # this is the first step in archiving LJ/DW/etc icons | |
| 4 | + | # see here: | |
| 5 | + | # https://bubblegum.girlonthemoon.xyz/articles/downloading-photobucket-hosted-images-without-watermarks | |
| 6 | + | ||
| 7 | + | url="$1" | |
| 8 | + | ||
| 9 | + | if [[ "$#" -ne 1 ]]; then | |
| 10 | + | echo "Usage: geticon [URL]" | |
| 11 | + | exit 1 | |
| 12 | + | fi | |
| 13 | + | ||
| 14 | + | gallery-dl -g "r:$url" > i.txt |