Last active
December 12, 2025 06:02
-
-
Save hyunbinseo/6ace7f506ac9a15791ebc290beec3d4b to your computer and use it in GitHub Desktop.
Frequently Used Commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo mount -t cifs "//100.0.0.0/zoom/zoom" "./zoom-nas" -o username="hyunbinseo",password="pw",file_mode=0777,dir_mode=0777 | |
| cd zoom-nas | |
| find ./2024-* -type f -name "*.mp4" | grep -E "_as|avo|gallery|gvo_" | while read -r file; do rm -v "$file"; done | |
| cd .. | |
| sudo umount ./zoom-nas |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # mount nas directory | |
| # find paths of select files | |
| # copy listed files to local | |
| # convert mp4 files to audio | |
| # send audio files with croc | |
| # should use a non-tailscale ip | |
| read -p "NAS IP Address: " NAS_IP | |
| read -p "NAS Username: " USERNAME | |
| read -s -p "NAS Password: " PASSWORD | |
| echo | |
| BASE_DIR=~/zoom-converted | |
| MP4_DIR="$BASE_DIR/mp4" | |
| AAC_DIR="$BASE_DIR/aac" | |
| PATHS_FILE="$BASE_DIR/paths.txt" | |
| NAS_MOUNT=~/zoom-readonly | |
| NAS_PATH=//$NAS_IP/zoom/zoom | |
| mkdir -p "$MP4_DIR" "$AAC_DIR" "$NAS_MOUNT" | |
| sudo mount -t cifs "$NAS_PATH" "$NAS_MOUNT" -o username="$USERNAME",password="$PASSWORD",ro | |
| trap 'sudo umount "$NAS_MOUNT"' EXIT | |
| # 서현빈 (대한초) | |
| # 홍길동 (민국초) | |
| find "$NAS_MOUNT" -type f -name "*Recording_as_*.mp4" | grep -E "서현빈 \(대한초\)|홍길동 \(민국초\)" > "$PATHS_FILE" | |
| cd "$BASE_DIR" | |
| xargs -a "$PATHS_FILE" -I{} cp {} "$MP4_DIR" | |
| cd "$MP4_DIR" | |
| for file in *.mp4; do ffmpeg -i "$file" -vn -acodec copy "$AAC_DIR/${file%.mp4}.aac"; done | |
| croc send "$AAC_DIR" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
commands.mdhas been moved to this gist