Skip to content

Instantly share code, notes, and snippets.

View EthanArbuckle's full-sized avatar

objc EthanArbuckle

View GitHub Profile
@EthanArbuckle
EthanArbuckle / main.m
Created March 1, 2023 12:41
control permissions of apps installed in the ios simulator
//
// main.m
// permission-changer
//
// Created by Ethan Arbuckle on 3/1/23.
//
#import <Foundation/Foundation.h>
#include <dlfcn.h>
#include <objc/runtime.h>
@EthanArbuckle
EthanArbuckle / iokit_forcetouch.c
Created December 20, 2015 19:00
Detect if force touch is supported through IOKit
#include <IOKit/hid/IOHIDLib.h>
#include <IOKit/hid/IOHIDEventSystem.h>
int main(int argc, char **argv, char **envp) {
CFMutableDictionaryRef dict = IOServiceMatching("AppleMultitouchN1SPI");
CFDictionaryAddValue(dict, CFSTR(kIOHIDManufacturerKey), CFSTR("Apple Inc."));
io_iterator_t iter;
mach_port_t port = kIOMasterPortDefault;
@EthanArbuckle
EthanArbuckle / code.mm
Created September 9, 2015 02:30
a gross way to use raw iokit events to detect pinch gestures
#import <UIKit/UIKit.h>
#include <IOKit/hid/IOHIDEventSystem.h>
#include <IOKit/hid/IOHIDEventSystemClient.h>
#include "CDTContextHostProvider.h"
#include <stdio.h>
#include <dlfcn.h>
UIView *contextView;
int IOHIDEventSystemClientSetMatching(IOHIDEventSystemClientRef client, CFDictionaryRef match);

Keybase proof

I hereby claim:

  • I am EthanArbuckle on github.
  • I am its_not_herpes (https://keybase.io/its_not_herpes) on keybase.
  • I have a public key whose fingerprint is 68A3 1096 B510 A8C0 B100 69EF 557A 6562 9E60 F592

To claim this, I am signing this object:

Process: Xcode [5113]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 5.0.1 (3335.23)
Build Info: IDEApplication-3335023000000000~2
App Item ID: 497799835
App External ID: 84192765
Code Type: X86-64 (Native)
Parent Process: launchd [415]
Responsible: Xcode [5113]
This file has been truncated, but you can view the full file.
ctionary autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
Jun 20 06:37:12 EArbuckles-iPod UIKitApplication:com.designshed.alienblue[0x9adc][315] <Notice>: objc[315]: Object 0xd774ee0 of class __NSCFString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
Jun 20 06:37:12 EArbuckles-iPod UIKitApplication:com.designshed.alienblue[0x9adc][315] <Notice>: objc[315]: Object 0xd7747a0 of class __NSCFDictionary autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
Jun 20 06:37:12 EArbuckles-iPod UIKitApplication:com.designshed.alienblue[0x9adc][315] <Notice>: objc[315]: Object 0xd774e60 of class __NSCFDictionary autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
resourceful/resource.js:184:13)
error: at Function.Resource.runAfterHooks (/root/nodejitsu/node_modules/resourceful/lib/resourceful/resource.js:93:12)
error: at Resource._request (/root/nodejitsu/node_modules/resourceful/lib/resourceful/resource.js:179:14)
error: at Couchdb.view (/root/nodejitsu/node_modules/resourceful/lib/resourceful/engines/couchdb/index.js:143:5)
error: at Request._onResponse [as _callback] (/root/nodejitsu/node_modules/resourceful/node_modules/cradle/lib/cradle.js:233:9)
error: at Request.init.self.callback (/root/nodejitsu/node_modules/request/main.js:120:22)
error: at Request.EventEmitter.emit (events.js:99:17)
error: at Request.<anonymous> (/root/nodejitsu/node_modules/request/main.js:555:16)
error: at Request.EventEmitter.emit (events.js:96:17)
help: For help with this error contact Nodejitsu Support: