Skip to content

Instantly share code, notes, and snippets.

@lukemmtt
lukemmtt / apple-passwords-totp-passkeys-time-machine-recovery.md
Last active October 6, 2026 19:22
Recover Apple Passwords, password history and TOTP/2FA setup codes from Time Machine; migrate authenticator seeds and explore synced passkey records. Includes Python helpers.

Recover Apple Passwords, OTP Setup Codes and Passkey Records from Time Machine

Start with Deleted in the Passwords app. Deleted passwords and passkeys can generally be recovered there for up to 30 days. Apple's recovery instructions and this iDownloadBlog walkthrough explain the built-in recovery process.

This guide grew out of a nasty failure I encountered: during password/passkey changes, an existing account entry lost its OTP generator, and the missing setup key never appeared in Deleted. I wrote it for others facing that gap, especially when waiting for the website to reset 2FA is impractical or a reset is unavailable.

The method below recovers passwords, earlier password versions, and OTP setup keys from Time Machine backups. Use recovered keys to rebuild a lost verification-code generator or migrate it to another authentica

@lukemmtt
lukemmtt / README.md
Last active May 15, 2026 04:30
Shorebird OTA patches for Mac App Store apps

Shorebird OTA Patches for Mac App Store Apps

Use this workaround to patch a Flutter macOS app distributed through the Mac App Store before Shorebird has first-class Mac App Store support.

The workaround starts after your Mac App Store app is live. Build, sign, submit, review, approve, and release the app exactly the way you already do.

Shorebird needs to generate the patch from the same .app bundle your users have installed. For Mac App Store apps, that is the store-delivered .app, not the .app on your build machine. After the app is live, the script's register-baseline command downloads the store-delivered app and uploads that bundle to Shorebird as the baseline for future patches.

Upstream issue: shorebirdtech/shorebird#3223.

@lukemmtt
lukemmtt / mcp_flutter_claude_code_integration.md
Last active March 22, 2026 08:58
Integrating mcp_flutter into Claude Code

Integrating mcp_flutter with Claude Code

Overview

MCP Flutter enables AI assistants like Claude Code to interact with Flutter applications in real-time, providing screenshot capture, error monitoring, hot reload integration, and direct app interaction.

Prerequisites:

  • Flutter SDK 3.0.0+
  • Claude Code CLI
  • MCP Flutter server built from source
@lukemmtt
lukemmtt / generate_windows_store_assets.py
Created March 7, 2025 06:19
Generate windows store assets and ICO
#!/usr/bin/env python3
import os
import sys
import subprocess
import io
import json
import math
from pathlib import Path
from PIL import Image, ImageDraw, ImageFilter