Commit 6081175

xxwhirlpool  ·  2026-09-29 19:23:18 -0400 EDT
parent b7551fa
misc
4 files changed,  +3, -48
+1, -0
......@@ -1 +1,2 @@
11 .mbsyncrc
2+.msmtprc
+0, -23
......@@ -1,23 +0,0 @@
1-#!/usr/bin/env bash
2-
3-# pick addr based on arg
4-# e.g. `syncmail melo`
5-if [[ "$1" == "melo" ]]; then
6- addr="$HOME/.config/notmuch/.notmuch-config-melo"
7-elif [[ "$1" == "lachesis" ]]; then
8- addr="$HOME/.config/notmuch/.notmuch-config-lachesis"
9-elif [[ "$#" -eq 0 || "$1" != "melo" || "$1" != "lachesis" ]]; then
10- echo "no addr or wrong addr"
11- exit 1
12-fi
13-
14-# use right config
15-notmuchsync() {
16- notmuch --config="$addr" "$@"
17-}
18-
19-# sync all mail
20-mbsync -a
21-
22-# index mail
23-notmuchsync new
+2, -4
......@@ -1,21 +1,20 @@
11 #!/usr/bin/env bash
22
3+shopt -s nullglob
4+
35 avi2mkv() {
46 for f in *.avi; do ffmpeg -fflags +genpts -i "$f" -c:v copy -c:a copy -c:s copy "${f%.*} AVI2MKV.mkv" || break; done
57 }
68
79 any2hevc() {
8- shopt -s nullglob
910 for f in *.{mkv,mp4,ts}; do ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i "$f" -c:v hevc_nvenc -qmin 24 -qmax 24 -vtag hvc1 -profile main -preset slow -rc vbr_hq -c:a copy -c:s copy -map 0 "${f%.*} HEVC.mkv" || break; done
1011 }
1112
1213 vid2frames() {
13- shopt -s nullglob
1414 for f in *.{mkv,mp4,webm}; do ffmpeg -i "$f" -vf mpdecimate,setpts=N/FRAME_RATE/TB "%04d.png" || break; done
1515 }
1616
1717 vidsubs() {
18- shopt -s nullglob
1918 for sub in *.{srt,ass}; do
2019 subext="${sub##*.}"
2120 done
......@@ -24,7 +23,6 @@ vidsubs() {
2423 }
2524
2625 vidhash() {
27- shopt -s nullglob
2826 # borrowed from my buddy neckspike:
2927 # https://pastebin.com/mg3CVDiU
3028 for f in *.{mkv,mp4}; do
+0, -21
......@@ -1,21 +0,0 @@
1-defaults
2-auth on
3-tls on
4-tls_trust_file /etc/ssl/certs/ca-certificates.crt
5-logfile ~/.config/msmtp/msmtp.log
6-
7-account melodicake@disroot.org
8-host disroot.org
9-port 587
10-tls_starttls on
11-from melodicake@disroot.org
12-user melodicake@disroot.org
13-passwordeval "pass personal/melodicake_disroot"
14-
15-account witnesslachesis@disroot.org
16-host disroot.org
17-port 587
18-tls_starttls on
19-from witnesslachesis@disroot.org
20-user witnesslachesis@disroot.org
21-passwordeval "pass personal/witnesslachesis"