Skip to content

Instantly share code, notes, and snippets.

View samhenrigold's full-sized avatar
📱
out with rach, cell’s hot if u r

samhenrigold

📱
out with rach, cell’s hot if u r
View GitHub Profile
@samhenrigold
samhenrigold / Class Decomp.py
Created September 7, 2026 19:11
Hopper class decompilation script
# -*- coding: utf-8 -*-
import re
import gc
import os
IGNORED_CLASS_PREFIXES = [
'AFNetwork', 'AFHTTP', 'AFURL', 'AFSecurity',
'Flurry', 'FMDatabase',
'MBProgressHUD', 'MJ',
#!/usr/bin/env python3
"""
Triage a folder of iTunes .ipa files against legacystore.app.
The key trick: FairPlay only encrypts the __TEXT segment of the main Mach-O. The zip
container, Info.plist, and iTunesMetadata.plist are all PLAINTEXT even in an encrypted
iTunes .ipa — so you can read every identifier out of your files WITHOUT decrypting or
jailbreaking anything.
For each .ipa it pulls whatever identifiers are present (iTunes downloads may have all,
@samhenrigold
samhenrigold / Makefile
Last active July 15, 2026 23:23
Smallest possible Mac app
window: win.s
clang -arch x86_64 -c -o win.o win.s
segedit win.o -extract __TEXT __text $@
chmod +x $@
@rm -f win.o
@ls -l $@
clean:
rm -f window win.o
@samhenrigold
samhenrigold / 001_NEW27_task_overview.txt
Last active August 5, 2026 02:04
iOS 27 system prompts
# Owning binary : TextComposerRuntime
# Status : NEW in iOS 27 (not in 26.5.1)
# Source : embedded __cstring in dyld_shared_cache_arm64e (24A5355q)
======================================================================
# Task Overview:
You are a composition agent that helps users create personalized written content (emails, messages, documents, posts, stories, etc.)
As an Assistant, you must:
1. Analyze the request to determine if you have sufficient information
@samhenrigold
samhenrigold / gist:c568bf21948c4eea69f4989417289f6e
Created February 20, 2026 03:01
SwiftUI segmented control rendering bug
//
// ContentView.swift
// toolbar-picker-bug
//
// Created by Sam on 2026-02-19.
//
import SwiftUI
struct ContentView: View {
#!/bin/bash
# MacBook Lid Angle Sensor Diagnostic Script
# This script helps identify the lid angle sensor on different MacBook models
echo "=============================================="
echo "MacBook Lid Angle Sensor Diagnostic Tool"
echo "=============================================="
echo ""
@samhenrigold
samhenrigold / _WWDC25 AI-ML Group Lab.md
Last active July 28, 2025 13:03
WWDC25 Machine Learning and AI Frameworks group lab

(Summary generated by ChatGPT based on the automatic transcription. Transcript is attached to this Gist)

Panelists:

  • Host: Shashank

  • Panelists: Michael, Erik, Richard, Ronan


Also, if you have a bug or a feature request, please go to bugreporter.apple.com. Today we want to focus on questions that will help the broader audience. So, please send us your questions using the Slido panel here in WebEx. Once our moderators approve the questions, they'll appear for everyone to up vote, so we can narrow in on the questions that are of most interest to all of you. So let's jump in. I'm going to claim moderator privilege and start with a couple of questions that I'm particularly interested in. So the first thing I would like to talk about to get the ball rolling is, I just want to ask each of you what your favorite new Swift UI API is this year. Summer, why don't you kick us off? All right, I'm gonna have to go with our new rich text editor. was a big labor of love for my team, and it was super fun, 'cause we got to work cross functionally with foundation, text kit, cortex, UAKit, app kit, everybody. Excellent. Nick, how about you? Uh, for me, this is definitely a safe area bar, kind of an
and definitely have the expertise to answer any questions that you have for us. So, to kick things off, in some of the design sessions, and keynote, and so, too, we were talking a little bit about the way in which liquid glass can really help with navigation, focus, in the UI, and there's some questions, just kind of, you know, can we expand on that? Can we elaborate a little bit on that notion? And I think maybe, Chabam, that might be a good one for you to take. Yeah, yeah, absolutely. So with liquid glass, you know, we really tried to clarify the navigation layer in our apps. So liquid glass introduces a single floating plane that acts as an navigation layer for your app. buttons in that floating pane sort of seamlessly morph in mitosis as you move between different sections of the app, and when you look at things like controls, controls can also temporarily lift into that glass steam. If you watch some of the design sessions, you know, we go into not overusing glass or not using glass on top of glass, but

(Summary generated by ChatGPT based on the automatic transcription. Transcript is attached to this Gist)

Q: What's the best approach to updating my app's UI for the new design?

A:

I think the best approach is to start from either the top down or the bottom up---however you perceive the hierarchy of your application. Focus on the big structural parts, since they tend to be most affected by the design and are often reflected in your code structure. Start there, then focus on the smaller elements.

Follow-up (Mohammed):