Commit 6081175
xxwhirlpool
·
2026-09-29 19:23:18 -0400 EDT
parent b7551fa
misc
4 files changed,
+3,
-48
+1,
-0
+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 @@ | |
| 1 | 1 | #!/usr/bin/env bash | |
| 2 | 2 | ||
| 3 | + | shopt -s nullglob | |
| 4 | + | ||
| 3 | 5 | avi2mkv() { | |
| 4 | 6 | for f in *.avi; do ffmpeg -fflags +genpts -i "$f" -c:v copy -c:a copy -c:s copy "${f%.*} AVI2MKV.mkv" || break; done | |
| 5 | 7 | } | |
| 6 | 8 | ||
| 7 | 9 | any2hevc() { | |
| 8 | - | shopt -s nullglob | |
| 9 | 10 | 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 | |
| 10 | 11 | } | |
| 11 | 12 | ||
| 12 | 13 | vid2frames() { | |
| 13 | - | shopt -s nullglob | |
| 14 | 14 | for f in *.{mkv,mp4,webm}; do ffmpeg -i "$f" -vf mpdecimate,setpts=N/FRAME_RATE/TB "%04d.png" || break; done | |
| 15 | 15 | } | |
| 16 | 16 | ||
| 17 | 17 | vidsubs() { | |
| 18 | - | shopt -s nullglob | |
| 19 | 18 | for sub in *.{srt,ass}; do | |
| 20 | 19 | subext="${sub##*.}" | |
| 21 | 20 | done |
| ... | ... | @@ -24,7 +23,6 @@ vidsubs() { | |
| 24 | 23 | } | |
| 25 | 24 | ||
| 26 | 25 | vidhash() { | |
| 27 | - | shopt -s nullglob | |
| 28 | 26 | # borrowed from my buddy neckspike: | |
| 29 | 27 | # https://pastebin.com/mg3CVDiU | |
| 30 | 28 | 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" |