Skip to content

Instantly share code, notes, and snippets.

find . \( -name '*.h' -o -name '*.m' -o -name '*.swift' -o -name '*.pch' \) -print0 | xargs -0 sed -i '' -e '//d'
find . \( -name '*.h' -o -name '*.m' -o -name '*.swift' -o -name '*.pch' \) -print0 | xargs -0 sed -i '' -e '//d'
Arguments passed on Launch:
-NSViewShowAlignmentRects YES
-NSShowAllViews YES
Debuging:
-[NSView _subtreeDescription]
-[NSView constraintsAffectingLayout:forOrientation:]
-[NSWindow visualizeConstraints:]
@dynbit
dynbit / iOS codesign - info and details
Last active December 17, 2015 00:49
iOS codesign - info and details
codesign --display --entitlements - The.app/
codesign --display --verbose=4 The.app/
@dynbit
dynbit / updatedb-command.sh
Created July 27, 2012 10:24
Update OS X locate database
sudo /usr/libexec/locate.updatedb
@dynbit
dynbit / osx_atos_helper
Created March 22, 2012 17:32
OS X Crash Reporter Get Method Names By Address
atos -o PathToAppBinary -arch x86_64 -l 0x10a3e2000
@dynbit
dynbit / ObjC Crash
Created February 28, 2012 12:01
Objective C force application crash
// Helpful for when you're trying to test what your app does when it faults.
// You could also just divide by zero, but that'll only work on Intel. PPC returns 0.
#define CRASH_CODE 1
#if CRASH_CODE
NSLog( @"forcing crash" );
kill( getpid(), SIGABRT );
#endif