This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Seems to help now to give the path to the symbols that match the version of iOS that produced the crash. | |
For iOS 5.1: | |
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash -v crashfile /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1\ \(9B176\)/Symbols | |
For iOS 5.0.1: | |
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash -v crashfile ~/Library/Developer/Xcode/iOS\ DeviceSupport/5.0.1\ \(9A405\)/Symbols |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// .h | |
@interface NSNull (null) | |
+ (void) setWarnsOnNullAccess:(BOOL) warnsOnNullAccess; | |
- (BOOL) boolValue; | |
- (char) charValue; | |
- (NSDecimal) decimalValue; | |
- (double) doubleValue; | |
- (float) floatValue; | |
- (int) intValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Source: http://hints.macworld.com/article.php?story=20120701234338952 | |
# Have you ever been annoyed to find that your Mac won't got to sleep when you tell it to? | |
# It turns out that in Mac OS X 10.6 and later, there's a simple way of finding out what's | |
# keeping your Mac awake. | |
# Run the following command in your Terminal: | |
# pmset -g assertions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in 2012 by Johannes Fahrenkrug, http://springenwerk.com | |
# See you at WWDC! | |
require 'rubygems' | |
require 'open-uri' | |
class WWDC2012 | |
def self.announced? | |
begin | |
title = open('https://developer.apple.com/wwdc/') do |f| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Watch this for a while, then ctrl-c | |
sudo fs_usage -w -f "filesys" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A theory as to the ending of Breaking Bad... | |
White family: deceased | |
Hank and Marie: deceased | |
Kids: deceased | |
Walt: only one left, cancer cured | |
It was all for nothing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSObject+BlockObservation.h | |
// Version 1.0 | |
// | |
// Andy Matuschak | |
// [email protected] | |
// Public domain because I love you. Let me know how you use it. | |
// | |
#import <Cocoa/Cocoa.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *homer = | |
@"\n" | |
@" __ \n" | |
@" _ ,___,-'\",-=-. \n" | |
@" __,-- _ _,-'_)_ (\"\"`'-._\\ `. \n" | |
@" _,' __ |,' ,-' __) ,- /. | \n" | |
@" ,'_,--' | -' _)/ `\\ \n" | |
@" ,',' ,' ,-'_,` : \n" | |
@" ,' ,-' ,(,-( : \n" | |
@" ,' ,-' , _ ; \n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (id)swizzled_retain | |
{ | |
NSLog(@"yes, I know"); | |
return [self swizzled_retain]; | |
} | |
+ (void)load | |
{ | |
// swizzle retain | |
Class c = [self class]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
######################################## | |
# Quick and dirty script for cloning an svn branch with git without pulling the entire repo history | |
# | |
# Usage: git-svn-clone.sh <URL> <LOCAL_OUTPUT_PATH> | |
# e.g. git-svn-clone.sh http://myserver.com/svn/branches/feature-1.0 feature-1.0 | |
# | |
######################################## |
OlderNewer