The Cyberpunk Toolbag

A curated collection of technical scripts and configuration snippets to help you automate your CaptureGem workflow.

Automated Move-to-Archive (Python)

Moves recordings from local SSD to NAS after a set number of days while preserving folder structure.

import os import shutil from datetime import datetime, timedelta SOURCE = "/path/to/ssd/recordings" DEST = "/path/to/nas/archive" AGE_DAYS = 7 for root, dirs, files in os.walk(SOURCE): for f in files: path = os.path.join(root, f) mtime = datetime.fromtimestamp(os.path.getmtime(path)) if mtime < datetime.now() - timedelta(days=AGE_DAYS): rel_path = os.path.relpath(path, SOURCE) dest_path = os.path.join(DEST, rel_path) os.makedirs(os.path.dirname(dest_path), exist_ok=True) shutil.move(path, dest_path)

Rclone Cloud Sync (Bash)

Nightly sync of your favorites folder to Cloudflare R2 or Google Drive with encryption.

#!/bin/bash # Sync favorites to encrypted remote rclone sync /mnt/recordings/Favorites secret-remote:Backup/Favorites \ --filter "+ *.mp4" \ --filter "- *" \ --transfers 4 \ --checkers 8 \ --contimeout 60s

FFmpeg Video Preview (10sec)

Generate a lightweight 10-second preview clip for sharing or fast browsing.

ffmpeg -ss 00:01:00 -t 10 -i input.mp4 \ -vf "scale=640:-1" \ -c:v libx264 -crf 28 -preset faster \ -an output_preview.mp4