macOS VM provisioning on Apple Silicon, from IPSW to SSH-ready in one command.
This spec documents the working implementation as of Feb 2026. It covers architecture, every gotcha encountered, and decisions made. Use it as a blueprint if you're building something similar.
I have a large codebase that I want to understand better through visual architecture diagrams. Please analyze the project structure and create comprehensive Mermaid diagrams that help me understand the codebase at different levels of detail.
First, explore the codebase to understand:
- Project structure - root directories, main modules, configuration files
- Dependencies - internal dependencies between modules/packages
- Architecture patterns - layered architecture, microservices, monolith, etc.
- Key systems - core functionality areas (UI, backend, database, API, etc.)
- Technology stack - frameworks, languages, tools used
Analyze this codebase and create a multi-level interactive dependency graph visualization as a single HTML file.
Level 1 - System Overview (40,000ft view):
- Show only top-level directories/subsystems
- Group by: Frontend, Backend, Core, Database, Tests, Tools, External
- Display as large nodes with # of files and primary language
- Show only major connections between subsystems
Level 2 - Module View (10,000ft view):
- Show ~30-50 most important modules/packages
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
| import requests | |
| def lookup_podcasts(search_term): | |
| base_url = "https://itunes.apple.com/search" | |
| params = { | |
| "term": search_term, | |
| "media": "podcast", | |
| "limit": 10 # Adjust the limit as needed | |
| } | |
This Week plan
- What I Am planing to do this week
- Complete Big Task 1123
- Big Task 2123
What Happened Last Week
- Last week plan
- Big Task 1
- Big Task 1123
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
| import SwiftUI | |
| extension Color { | |
| static var random: Color { | |
| return Color( | |
| red: .random(in: 0...1), | |
| green: .random(in: 0...1), | |
| blue: .random(in: 0...1) | |
| ) | |
| } |
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
| javascript:(function()%7Bvar%20video%20%3D%20document.getElementsByTagName('video')%5B0%5D%3Bvideo.play()%3Bvideo.webkitSetPresentationMode(video.webkitPresentationMode%20%3D%3D%3D%20%22picture-in-picture%22%20%3F%20%22inline%22%20%3A%20%22picture-in-picture%22)%7D)() |
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
| from PIL import Image, ImageDraw | |
| import random | |
| from sys import argv | |
| image_name = "" | |
| if len(argv) != 4: | |
| print("My have input, output and factor") | |
| exit() | |
| else: |
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
| import os | |
| from sys import argv | |
| from Quartz import CGWindowListCopyWindowInfo, kCGWindowListExcludeDesktopElements, kCGNullWindowID,kCGWindowListOptionOnScreenOnly | |
| windowList = CGWindowListCopyWindowInfo(kCGWindowListOptionOnScreenOnly | kCGWindowListExcludeDesktopElements, kCGNullWindowID) | |
| systemWindows = ['SystemUIServer', 'Window Server', 'Spotlight'] | |
| searchname = argv[1].lower() | |
| for i in windowList: | |
| if searchname in i['kCGWindowOwnerName'].lower() and i['kCGWindowOwnerName'] not in systemWindows: | |
| print(i['kCGWindowNumber'], i['kCGWindowOwnerName']) | |
| os.system('screencapture -l{0} "tmp/{0}{1}.png"'.format(i['kCGWindowNumber'], i['kCGWindowOwnerName'])) |
NewerOlder