- commit
- b3e1ca3
- parent
- eb59430
- author
- xxwhirlpool
- date
- 2025-07-03 17:00:06 -0400 EDT
cleanup; refactor a bunch of stuff into bashrc from bin & consolidate some stuff into one bin script
14 files changed,
+71,
-35
+0,
-3
1@@ -1,3 +0,0 @@
2-#!/bin/bash
3-
4-for f in *.mkv; do ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i "$f" -c:v hevc_nvenc -vtag hvc1 -profile main -preset slow -rc vbr_hq -c:a copy -c:s copy -map 0 "${f%.*} HEVC.mkv"; done
+1,
-3
1@@ -3,9 +3,7 @@
2 battery=$(upower -i $(upower -e | grep 'BAT') | awk '/percentage/ {print $NF}' | sed 's/%//g')
3 batteryint=$((battery))
4
5-if (( "$batteryint" < "50" )); then
6- notify-send "battery is under 50%!"
7-elif (( "$batteryint" < "20")); then
8+if (( "$batteryint" < "20")); then
9 notify-send "battery is under 20%!"
10 elif (( "$batteryint" < "10")); then
11 notify-send "battery is under 10%!!! charge ur laptop!!!!"
+0,
-3
1@@ -1,3 +0,0 @@
2-#!/bin/bash
3-
4-for f in *.cbr; do unar -d "$f"; done
+20,
-0
1@@ -0,0 +1,20 @@
2+#!/bin/bash
3+
4+cbr2cbz() {
5+ for f in *.cbr; do unar -d "$f"; done
6+}
7+
8+dir2cbz() {
9+ for i in */; do zip -r "${i%/}.cbz" "$i"; done
10+}
11+
12+choice() {
13+ choose=$(gum choose "cbr2cbz" "dir2cbz")
14+ case "$choose" in
15+ *cbr2cbz) cbr2cbz;;
16+ *dir2cbz) dir2cbz;;
17+ *) exit;;
18+ esac
19+}
20+
21+choice
+0,
-3
1@@ -1,3 +0,0 @@
2-#!/bin/bash
3-
4-for i in */; do zip -r "${i%/}.cbz" "$i"; done
+20,
-0
1@@ -0,0 +1,20 @@
2+#!/bin/bash
3+
4+kr() {
5+ unzip -O CP932 $1
6+}
7+
8+jp() {
9+ unzip -O CP932 $1
10+}
11+
12+choice() {
13+ choose=$(gum choose "JP" "KR")
14+ case "$choose" in
15+ *JP) jp ;;
16+ *KR) kr ;;
17+ *) exit;;
18+ esac
19+}
20+
21+choice
+0,
-4
1@@ -1,4 +0,0 @@
2-#!/bin/bash
3-# news from getnews.tech
4-
5-curl us.getnews.tech/category=general,n=5,nocolor
+0,
-3
1@@ -1,3 +0,0 @@
2-#!/bin/bash
3-
4-date +%s | sha256sum | base64 | head -c 40 ; echo
+0,
-3
1@@ -1,3 +0,0 @@
2-#!/bin/bash
3-
4-git push bytes main && cd /home/kat/Documents/Code/Git/-mine/astro-eunoia/eunoia/src/utils && node git-changelog.js
+0,
-3
1@@ -1,3 +0,0 @@
2-#!/bin/bash
3-
4-unzip -O CP932 $1
+0,
-3
1@@ -1,3 +0,0 @@
2-#!/bin/bash
3-
4-unzip -O CP949 $1
+0,
-3
1@@ -1,3 +0,0 @@
2-#!/bin/bash
3-
4-for f in *.mp4; do ffmpeg -i "$f" '%04d.png'; done
+0,
-4
1@@ -1,4 +0,0 @@
2-#!/bin/sh
3-# weather from wttr.in
4-
5-curl https://wttr.in/New+York?F1uq
+30,
-0
1@@ -40,3 +40,33 @@ export FZF_DEFAULT_OPTS=" \
2 # lazy ass way for me to get my idol mp3s from youtube
3 # usage: ytmp3 url
4 alias ytmp3="yt-dlp -f ba -x --audio-format mp3"
5+
6+# some cd bookmarks
7+alias dotf="cd /home/kat/dotfiles"
8+alias gmine="cd /home/kat/Documents/Git/-mine"
9+
10+# weather stuff
11+alias wttr="curl https://wttr.in/New+York?F0AS"
12+alias weather=wttr
13+
14+alias wttrlg="curl https://wttr.in/New+York?F1uq"
15+alias weatherlg=wttrlg
16+
17+alias sun="daylight --short --timezone='America/New_York' | lolcat"
18+
19+# print internal & external IPs
20+function whatip() {
21+ # internal
22+ echo -n "internal IP: " | lolcat -p 0.7; hostname -I | awk '{print $1}'
23+ # external
24+ echo -n "external IP: " | lolcat -p 0.7; curl -4 icanhazip.com
25+}
26+
27+# password generator. takes input for password length by number
28+function passgen() {
29+ PASSLENGTH=$(gum input --placeholder "type a number")
30+ date +%s | sha256sum | base64 | head -c $PASSLENGTH ; echo
31+}
32+
33+# used to be a ~/.local/bin entry but that was dumb
34+alias pusheu="git push bytes main && cd /home/kat/Documents/Git/-mine/eunoia-astro/src/utils && node git-changelog.js"