Skip to content

Instantly share code, notes, and snippets.

@looping
looping / gist:cd25b16e93b8fa3158cf
Last active August 6, 2020 15:03
Hack a .a library file
# Using libtool, lipo, ar and otool
lipo -info input.a
lipo -extract_family arm64 -output output.a input.a
# output.a is a fat file (use libtool(1) or lipo(1) and ar(1) on it)
# lipo output.a -thin arm64 -output output_arm64.a
ar -x output_arm64.a
@looping
looping / gist:48bdfd48ea6d5cd18a38
Last active February 12, 2016 11:35
IDEBuildOperationMaxNumberOfConcurrentCompileTasks
defaults write com.apple.dt.Xcode IDEBuildOperationMaxNumberOfConcurrentCompileTasks 0
@looping
looping / gist:8290b62836512a89b330
Created October 23, 2014 15:13
Show All Files
defaults write com.apple.finder AppleShowAllFiles -bool true
@looping
looping / gist:21fb5827acc6ae205171
Created November 5, 2014 10:16
NSString to Unicode
- (NSString *)unicodeString:(NSString *)string {
NSMutableString *retString = [NSMutableString stringWithCapacity:0];
for (int index = 0; index < [string length]; index++) {
[retString appendFormat:@"\\u%04x",[string characterAtIndex:index]];
}
return retString;
}