Skip to content

Instantly share code, notes, and snippets.

View aspauldingcode's full-sized avatar
馃憢
Looking for summer internships!

Alex Spaulding aspauldingcode

馃憢
Looking for summer internships!
View GitHub Profile
@macshome
macshome / defang.md
Last active September 28, 2026 00:24
How to defang system protections on macOS

How to Defang macOS System Protections

If you want to change things on the root drive of a Mac you will need to take some steps to disable the built in security of the system. Most of these steps are the same regardless if you are on Intel or Apple Silicon. If there is a difference it is noted.

Note that all of these things put a Mac into an unsupported and less secure state.

Make sure you either perform these steps in a VM or that you reset the protections after you are done poking around

Protections and Terms

(This list is not exahustive on the details of each. Check the links at the end for more info.)

@spencerpogo
spencerpogo / json2nix.py
Last active August 25, 2026 23:54
Converts JSON objects into nix (hackishly).
"""Converts JSON objects into nix (hackishly)."""
import sys
import json
INDENT = " " * 2
def strip_comments(t):
@FreddieOliveira
FreddieOliveira / docker.md
Last active October 25, 2026 11:19
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 馃悑馃摫

Edit 馃帀

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@anthonya1999
anthonya1999 / IOMobileFramebuffer.h
Last active July 27, 2026 20:06
A recent disassembly of IOMobileFramebuffer framework
/* It is recommended to use dlopen & dlsym to call these functions, and use this header as a reference.
Example:
void *IOMobileFramebuffer = dlopen("/System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer", RTLD_LAZY);
IOMobileFramebufferReturn (*IOMobileFramebufferGetMainDisplay)(IOMobileFramebufferRef *pointer) = dlsym(IOMobileFramebuffer, "IOMobileFramebufferGetMainDisplay");
dlclose(IOMobileFramebuffer); */
/* You may have to include your IOSurface header to compile, because of the IOMobileFramebufferGetLayerDefaultSurface function. If you do not have it, you may just uncomment the typedef to an IOSurface below. */
#include <stdio.h>
#include <sys/mman.h>
#include <mach/mach.h>