Commit 6081175

xxwhirlpool  ·  2026-09-29 19:23:18 -0400 EDT
parent b7551fa
misc
4 files changed,  +3, -48
+1, -0
1@@ -1 +1,2 @@
2 .mbsyncrc
3+.msmtprc
+0, -23
 1@@ -1,23 +0,0 @@
 2-#!/usr/bin/env bash
 3-
 4-# pick addr based on arg
 5-# e.g. `syncmail melo`
 6-if [[ "$1" == "melo" ]]; then
 7-	addr="$HOME/.config/notmuch/.notmuch-config-melo"
 8-elif [[ "$1" == "lachesis" ]]; then
 9-	addr="$HOME/.config/notmuch/.notmuch-config-lachesis"
10-elif [[ "$#" -eq 0 || "$1" != "melo" || "$1" != "lachesis" ]]; then
11-	echo "no addr or wrong addr"
12-	exit 1
13-fi
14-
15-# use right config
16-notmuchsync() {
17-   notmuch --config="$addr" "$@"
18-}
19-
20-# sync all mail
21-mbsync -a
22-
23-# index mail
24-notmuchsync new
+2, -4
 1@@ -1,21 +1,20 @@
 2 #!/usr/bin/env bash
 3 
 4+shopt -s nullglob
 5+
 6 avi2mkv() {
 7 	for f in *.avi; do ffmpeg -fflags +genpts -i "$f" -c:v copy -c:a copy -c:s copy "${f%.*} AVI2MKV.mkv" || break; done
 8 }
 9 
10 any2hevc() {
11-	shopt -s nullglob
12 	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
13 }
14 
15 vid2frames() {
16-	shopt -s nullglob
17 	for f in *.{mkv,mp4,webm}; do ffmpeg -i "$f" -vf mpdecimate,setpts=N/FRAME_RATE/TB "%04d.png" || break; done
18 }
19 
20 vidsubs() {
21-	shopt -s nullglob
22 	for sub in *.{srt,ass}; do
23 		subext="${sub##*.}"
24 	done
25@@ -24,7 +23,6 @@ vidsubs() {
26 }
27 
28 vidhash() {
29-	shopt -s nullglob
30 	# borrowed from my buddy neckspike:
31 	# https://pastebin.com/mg3CVDiU
32 	for f in *.{mkv,mp4}; do
+0, -21
 1@@ -1,21 +0,0 @@
 2-defaults
 3-auth on
 4-tls on
 5-tls_trust_file /etc/ssl/certs/ca-certificates.crt
 6-logfile ~/.config/msmtp/msmtp.log
 7-
 8-account melodicake@disroot.org
 9-host disroot.org
10-port 587
11-tls_starttls on
12-from melodicake@disroot.org
13-user melodicake@disroot.org
14-passwordeval "pass personal/melodicake_disroot"
15-
16-account witnesslachesis@disroot.org
17-host disroot.org
18-port 587
19-tls_starttls on
20-from witnesslachesis@disroot.org
21-user witnesslachesis@disroot.org
22-passwordeval "pass personal/witnesslachesis"