Skip to content

Instantly share code, notes, and snippets.

View mitcdh's full-sized avatar

Mitchell Hewes mitcdh

View GitHub Profile
@mitcdh
mitcdh / simkl-letterboxd.py
Created January 30, 2026 08:53
SimklBackup.json to Letterboxd CSV for Import
import json
import csv
import sys
from datetime import datetime
def parse_simkl_to_letterboxd(input_file, output_file):
try:
with open(input_file, 'r', encoding='utf-8') as f:
data = json.load(f)
except FileNotFoundError:
@mitcdh
mitcdh / omarchy-backup.sh
Last active March 2, 2026 10:04
Omarchy Backup Script
#!/bin/bash
# ==========================================
# Omarchy Single-Archive Backup Script
# ==========================================
# 1. Setup final archive name and a secure temporary staging directory
FINAL_ARCHIVE="$HOME/Backup/omarchy_backup_$(date +%Y%m%d_%H%M%S).tar.gz"
STAGE_DIR=$(mktemp -d)
@mitcdh
mitcdh / gist:ba20279f24e20094bab07d6524f84a47
Created February 26, 2026 11:27
Surfing Keys Configuration
// ==========================================
// VIMPERATOR / PENTADACTYL CONFIGURATION
// ==========================================
// --- Tab Management ---
api.map('d', 'x'); // Close current tab (Vimp: d | Default: x)
api.map('u', 'X'); // Restore closed tab (Vimp: u | Default: X)
api.map('J', 'E'); // Go one tab left (Vimp: J | Default: E)
api.map('K', 'R'); // Go one tab right (Vimp: K | Default: R)