Skip to content

Instantly share code, notes, and snippets.

View slice's full-sized avatar
🎯
Focusing

Skip R. slice

🎯
Focusing
View GitHub Profile
@bdash
bdash / action-modifiers.scm
Created December 1, 2024 21:17
macOS sandbox action modifiers, filters, and operations
;; Current as of macOS 15.1
(with send-signal …)
(with errno …)
(with report)
(with no-report)
(with no-sandbox)
(with grant)
(with sip-override)
(with no-times)
@bdash
bdash / storage-classes.scm
Last active January 1, 2026 16:51
Storage classes assigned by the macOS platform sandbox policy
;; Current as of macOS 15.1
Accessibility
Accounts
AirDrop
AirPlay
AppStoreSandboxes
AppleInstallerSandboxes
AppleMediaServices
ArchiveUtility
@doraorak
doraorak / fixCapsLock.c
Last active February 21, 2026 03:07
Remove capslock delay on macOS
//effect goes away after rebooting, automation is recommended
void* handle = dlopen("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/HIServices", RTLD_NOW);
xpc_connection_t conn = xpc_connection_create("com.apple.hiservices-xpcservice", NULL);
if (conn == NULL) {
NSLog(@"Error creating connection");
return;
}