Skip to content

Instantly share code, notes, and snippets.

@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()
$ cd node_modules/baucis
$ npm install
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
[email protected] /Users/ash/node/2016/baucistest/node_modules/baucis
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
@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;