Skip to content

Instantly share code, notes, and snippets.

Luis Solano luisobo

Block or report user

Report or block luisobo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
luisobo / unused_assets
Created May 26, 2014
Detect unused assets
View unused_assets
all_assets=`find $1 -type f | uniq | grep -v @2x`
for asset in $all_assets; do
name=`basename $asset | cut -d . -f 1`
count=`git grep $name | grep -v project.pbxproj: | wc -l`
echo -e "$count\t$asset"
luisobo / gist:ef9568876d83371ac0a2
Last active Aug 29, 2015
Disable advertisingIdentifier to avoid AppStore rejection
View gist:ef9568876d83371ac0a2
void PIXWhatPartOfAdvertisingTrackingEnabledDidYouNotUnderstand(void) {
if (![[ASIdentifierManager sharedManager] isAdvertisingTrackingEnabled]) {
IMP newImplementation = imp_implementationWithBlock(^NSUUID *{
return nil;
Method m = class_getInstanceMethod([ASIdentifierManager class], @selector(advertisingIdentifier));
method_setImplementation(m, newImplementation);
View gist:9996253
### Keybase proof
I hereby claim:
* I am luisobo on github.
* I am luisobo ( on keybase.
* I have a public key whose fingerprint is 92D6 4381 84EB 2104 CB60 52C5 8F6C 0F26 F0A5 160D
To claim this, I am signing this object:
luisobo / gist:8604822
Created Jan 24, 2014
ReactiveCocoa: List of most modified files of the project
View gist:8604822
329 ReactiveCocoaFramework/ReactiveCocoa.xcodeproj/project.pbxproj
217 ReactiveCocoaFramework/ReactiveCocoaTests/RACSignalSpec.m
196 ReactiveCocoaFramework/ReactiveCocoa/RACSignal+Operations.m
117 ReactiveCocoaFramework/ReactiveCocoa/ReactiveCocoa.h
115 ReactiveCocoaFramework/ReactiveCocoa/RACSignal.m
113 ReactiveCocoaFramework/ReactiveCocoa/RACSignal+Operations.h
109 ReactiveCocoaFramework/ReactiveCocoa/RACSequence.m
93 Documentation/
84 ReactiveCocoaFramework/ReactiveCocoa/RACSubscribable+Operations.m


@interface Foo : NSObject

@property (nonatomic, strong) NSString *foo;


@implementation Foo
luisobo / gist:6620798
Created Sep 19, 2013
Xcode 5 IDEWorkspace NSView hierarchy
View gist:6620798
0x00007f944f5f4b30 [ A LU ] h=-&- v=-&& NSView 0x7f944d03da60 f=(0,0,1400,823) b=(-) TIME drawRect: min/mean/max 0.00/0.00/0.00 ms
[ A LU ] h=&&& v=-&- DVTTabSwitcher 0x7f944d042280 f=(0,0,1400,821) b=(-) TIME drawRect: min/mean/max 0.00/0.00/0.00 ms
[ AF LU ] h=-&- v=-&- NSTabView 0x7f944d0425c0 f=(0,0,1400,821) b=(-) TIME drawRect: min/mean/max 0.00/0.00/0.01 ms
[ A LU ] h=-&- v=-&- DVTControllerContentView 0x7f944d97ee50 f=(0,0,1400,821) b=(-) TIME drawRect: min/mean/max 0.00/0.00/0.00 ms
[ AF P LU ] h=--- v=--- DVTSplitView 0x7f944d99afc0 f=(0,0,1400,821) b=(-) TIME drawRect: min/mean/max 0.01/0.08/0.80 ms
[ H LU ] h=-&- v=-&- DVTReplacementView 0x7f944d9eac40 f=(-260,0,260,821) b=(-) TIME drawRect: min/mean/max 0.00/0.00/0.00 ms
[ hA LU ] h=-&- v=-&- DVTControllerContentView 0x7f944d963fa0 f=(0,0,260,821) b=(-) TIME drawRect: min/mean/max 0.00/0.00/0.00 ms
[ hA LU ] h=--- v=--- NSView 0x7f944d965280
luisobo /
Last active Jan 14, 2016
Hide iOS Simulator when running Unit Tests.

Hide iOS Simulator when running Unit Tests.

Based on this work, that @Dan2552 pointed out.


  1. Clone this gist (git clone hide_ios_simulator)
  2. Xcode -> Preferences -> Behavior -> Testing -> Generates output
  3. Run script -> Choose script -> Select hide_simulator
luisobo / first load
Created Dec 14, 2011
Factory girl loading factories twice
View first load
["/Users/Luis/Documents/Shopkeep/repos/backoffice/test/factories.rb:3:in `<top (required)>'",
"/Users/Luis/.rvm/gems/ruby-1.9.2-p290/gems/ruby-debug19-0.11.6/cli/ruby-debug/command.rb:174:in `eval'",
"/Users/Luis/.rvm/gems/ruby-1.9.2-p290/gems/ruby-debug19-0.11.6/cli/ruby-debug/command.rb:174:in `debug_eval'",
"/Users/Luis/.rvm/gems/ruby-1.9.2-p290/gems/ruby-debug19-0.11.6/cli/ruby-debug/commands/eval.rb:82:in `block in execute'",
"/Users/Luis/.rvm/gems/ruby-1.9.2-p290/gems/ruby-debug19-0.11.6/cli/ruby-debug/commands/eval.rb:19:in `run_with_binding'",
"/Users/Luis/.rvm/gems/ruby-1.9.2-p290/gems/ruby-debug19-0.11.6/cli/ruby-debug/commands/eval.rb:81:in `execute'",
"/Users/Luis/.rvm/gems/ruby-1.9.2-p290/gems/ruby-debug19-0.11.6/cli/ruby-debug/processor.rb:275:in `one_cmd'",
"/Users/Luis/.rvm/gems/ruby-1.9.2-p290/gems/ruby-debug19-0.11.6/cli/ruby-debug/processor.rb:261:in `block (2 levels) in process_commands'",
You can’t perform that action at this time.