Skip to content

Instantly share code, notes, and snippets.

View rainbowcardiod's full-sized avatar

rainbowcardiod

View GitHub Profile
@Teutates
Teutates / repack-rootless.sh
Last active January 12, 2025 01:59
Rootless Repacker
#!/bin/sh
### Procursus 2
### INFO: Repacks deb as rootless with iphoneos-arm64 arch, moves legacy tweak dir to
### new directory, and resigns. Does not do any further modification.
set -e
if ! type dpkg-deb >/dev/null 2>&1; then
@sindresorhus
sindresorhus / compile-objc.sh
Last active February 16, 2025 20:01
Compile Objective-C on the command-line with clang
# -fobjc-arc: enables ARC
# -fmodules: enables modules so you can import with `@import AppKit;`
# -mmacosx-version-min=10.6: support older OS X versions, this might increase the binary size
clang main.m -fobjc-arc -fmodules -mmacosx-version-min=10.6 -o main
@krzyspmac
krzyspmac / Deserialize.m
Created January 27, 2015 12:28
Serialize and deserialize PLIST to/from NSDictionary
// PLIST in NSData to NSDictionary
NSDictionary * result = [NSPropertyListSerialization propertyListWithData:data options:0 format:&format error:outError];