Skip to content

Instantly share code, notes, and snippets.

View AlanQuatermain's full-sized avatar

Jim Dovey AlanQuatermain

View GitHub Profile
@AlanQuatermain
AlanQuatermain / symbolicatecrash.pl
Last active August 30, 2015 07:34
Fixed version of symbolicatecrash for iPhone OS 3.0 devices.
#!/usr/bin/perl
#
# This script parses a crashdump file and attempts to resolve addresses into function names.
#
# It finds symbol-rich binaries by:
# a) searching in Spotlight to find .dSYM files by UUID, then finding the executable from there.
# That finds the symbols for binaries that a developer has built with "DWARF with dSYM File".
# b) searching in various SDK directories.
#
# Copyright (c) 2008 Apple Inc. All Rights Reserved.
@AlanQuatermain
AlanQuatermain / gist:100277
Created April 23, 2009 03:24
How to make a UIWebView in a table cell fill the ugly grey bit with rendered data
@interface UIWebView (WebViewManualRedrawSupport)
- (id) _documentView;
@end
@interface NSObject (WebViewManualRedrawSupport)
- (id) _webCoreNeedsDisplay;
@end
@implementation MyTableCellContainingAWebView (GetRidOfUglyGreyBlock)
@AlanQuatermain
AlanQuatermain / gist:98622
Created April 20, 2009 17:08
Xcode License Header Script
#!/usr/bin/ruby
require 'osx/cocoa'
require 'date'
OSX.require_framework "AddressBook"
filePath = "%%%{PBXFilePath}%%%"
fileName = File.basename(filePath)
projName = File.basename(File.dirname(filePath))