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
1@@ -105,6 +105,7 @@ alias unfuckwifi="sudo systemctl restart NetworkManager"
2 alias uptime="uptime -p"
3 alias irc="senpai"
4 alias xmpp="profanity"
5+alias email="neomutt"
6 alias ip="ip -c"
7
8 # some cd bookmarks
9@@ -253,6 +254,16 @@ bitrate() {
10 echo "$(file "$1" | sed 's/.*, \(.*\)kbps.*/\1/' | tr -d " " )" kbps
11 }
12
13+portfree() {
14+ while
15+ port=$(shuf -n 1 -i 1024-65535)
16+ netstat -atun | grep -q "$port"
17+ do
18+ continue
19+ done
20+ echo -n "$port"
21+}
22+
23 ######################################
24 # misc
25 ######################################
+14,
-0
1@@ -0,0 +1,14 @@
2+#!/usr/bin/env bash
3+#
4+# this is the first step in archiving LJ/DW/etc icons
5+# see here:
6+# https://bubblegum.girlonthemoon.xyz/articles/downloading-photobucket-hosted-images-without-watermarks
7+
8+url="$1"
9+
10+if [[ "$#" -ne 1 ]]; then
11+ echo "Usage: geticon [URL]"
12+ exit 1
13+fi
14+
15+gallery-dl -g "r:$url" > i.txt