Skip to content

Instantly share code, notes, and snippets.

@aaronash
aaronash / Tweak.xm
Created November 9, 2016 16:03
Theos syntax iOS tweak for 7.1.2 to brute force the lockscreen pincode
@interface SBDeviceLockController : NSObject
+(id)sharedController;
-(BOOL)attemptDeviceUnlockWithPassword:(id)password appRequested:(BOOL)requested;
-(void)_clearBlockedState;
@end
%hook SpringBoard
-(void)applicationDidFinishLaunching:(id)application {
%orig;
$ cd node_modules/baucis
$ npm install
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated to-iso-string@0.0.2: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
baucis@1.6.5 /Users/ash/node/2016/baucistest/node_modules/baucis
├── async@0.9.2
├─┬ baucis-json@1.0.0
│ └── event-stream@3.2.2
@aaronash
aaronash / script.cocoascript
Created March 20, 2016 22:43
Simple example Sketch plugin script to export layers into json data. This was an experiment. It's not pretty.
// Sketch export layers to json script
// This was hacked together for experimentation purposes, the code is ugly.
// logs:
// tail -f /var/log/system.log | grep Sketch
//I only later realized that there are methods to get the parent or children
//layers... oops. Seriously, I just threw this together.
function makeChildrenArray(layerGroup, dict, allLayers) {
// log("called makeChildrenArray for " + layerGroup)
// result = new Array()