Skip to content

Instantly share code, notes, and snippets.

@danii1
danii1 / README.md
Last active March 10, 2026 11:32
Force EDID override on Apple Silicon Macs using private IOAVService API (fixes KVM switch 4K issues)

force-edid

Force a custom EDID on external displays connected to Apple Silicon Macs (M1/M2/M3/M4).

Uses the private IOAVServiceSetVirtualEDIDMode API to dynamically override EDID at runtime — the only method that works on Apple Silicon (file-based plist overrides are ignored).

Use case

KVM switches often report fake/limited EDID to macOS, causing external displays to be stuck at 1080p even when they support 4K. This tool lets you apply the monitor's real EDID, unlocking the full resolution.

@lucasrod
lucasrod / iOS26_LOCATION_SPOOF_GUIDE.md
Created January 19, 2026 18:30
iOS 26.0 Location Spoofing with pymobiledevice3

iOS 26.0 Location Spoofing Quick Guide

Using pymobiledevice3 for GPS simulation on iOS 17.0+


TL;DR (Daily Usage)

# Terminal 1: Start tunnel (keep open)
@madebyollin
madebyollin / stable_diffusion_m1.py
Last active February 10, 2024 02:25
Stable Diffusion on Apple Silicon GPUs via CoreML; 2s / step on M1 Pro
# ------------------------------------------------------------------
# EDIT: I eventually found a faster way to run SD on macOS, via MPSGraph (~0.8s / step on M1 Pro):
# https://github.com/madebyollin/maple-diffusion
# The original CoreML-related code & discussion is preserved below :)
# ------------------------------------------------------------------
# you too can run stable diffusion on the apple silicon GPU (no ANE sadly)
#
# quick test portraits (each took 50 steps x 2s / step ~= 100s on my M1 Pro):
# * https://i.imgur.com/5ywISvm.png

Fixing macOS 10.14, 10.15, 12

Dark main menu without the rest of dark mode

  1. Set Light mode
  2. defaults write -g NSRequiresAquaSystemAppearance -bool Yes
  3. Log out and log back in
  4. Set Dark mode
@azureru
azureru / extract android kernel.md
Last active February 5, 2026 02:22
How to Extract Android Kernel And Modify The Boot Ramdisk (Android 4.4) on Allwinner based Processor

Extracting Existing Kernel + Ramfs

Enter the machine using adb shell

Run cat /proc/partitions

  #  Path                     Purpose        Size
  0 /dev/block/mmcblk0                       7761920
  1 /dev/block/mmcblk0p1      data           6085631