Commit 11462a6

xxwhirlpool  ·  2026-03-04 18:45:00 -0500 EST
parent 189ace1
mksh, snsclip, stripexif, ytmp3
5 files changed,  +19, -10
+0, -4
......@@ -138,10 +138,6 @@ alias glow="glow -p"
138138 alias qrcode="qrencode -t ansiutf8"
139139 alias ffmpeg="ffmpeg -hide_banner"
140140 alias open="xdg-open &> /dev/null"
141-
142-# lazy ass way for me to get my idol mp3s from youtube
143-# usage: ytmp3 url
144-alias ytmp3="yt-dlp -f ba -x --audio-format mp3"
145141
146142 # weather stuff
147143 alias wttr="curl https://wttr.in/nyc?F0ASu"
+5, -3
......@@ -7,12 +7,14 @@ if [ $# -eq 0 ]; then
77 exit 1
88 fi
99
10+LCLBIN_PATH="/home/kat/dotfiles/config/.local/bin"
11+
1012 if [[ "$1" == "--bin" ]]; then
1113 echo "#!/usr/bin/env bash" > "$2"
1214 chmod u+x "$2"
13- mv "$2" "/home/kat/dotfiles/config/.local/bin"
14- micro "$2"
15-elif [[ "$!" != "--bin" ]]; then
15+ mv "$2" "$LCLBIN_PATH"
16+ micro "$LCLBIN_PATH/$2"
17+elif [[ "$1" != "--bin" ]]; then
1618 echo "#!/usr/bin/env bash" > "$1"
1719 chmod u+x "$1"
1820 micro "$1"
+2, -1
......@@ -14,4 +14,5 @@ if [ $# -eq 0 ]; then
1414 exit 1
1515 fi
1616
17-yt-dlp -f "ba+bv*[height<=1080p]" -o "$FILE_OUT_NAME" "$URL" --merge-output-format mp4
17+# best audio + best video under 1080p (excl. AI upscale) && incl. file extension in output
18+yt-dlp -f "ba+bv*[height<=1080p][format_id!*=-sr]" -o "$FILE_OUT_NAME.%(ext)s" "$URL" --merge-output-format mp4
+2, -2
......@@ -5,8 +5,8 @@ if ! test -x "$(command -v exiftool)"; then
55 exit 1
66 fi
77
8-if [ "$1" == "" ]; then
9- echo "please specify an image path"
8+if [ $# -eq 0 ]; then
9+ echo "Usage: stripexif [FILENAME]"
1010 exit 1
1111 else
1212 exiftool -all:all= -tagsfromfile @ -exif:Orientation "$1"
+10, -0
......@@ -0,0 +1,10 @@
1+#!/usr/bin/env bash
2+#
3+# lazy ass way to get my idol MP3s
4+
5+if [[ $# -eq 0 ]]; then
6+ echo "Usage: ytmp3 [URL]"
7+ exit 1
8+fi
9+
10+yt-dlp -f ba -x --audio-format mp3 -o "%(title)s.%(ext)s" "$1"