Skip to content

Instantly share code, notes, and snippets.

View michaelnisi's full-sized avatar
🌐

Michael Nisi michaelnisi

🌐
View GitHub Profile
@michaelnisi
michaelnisi / gist:6095393
Created July 27, 2013 16:35
XCode header search path to expose static libraries in a workspace.
$(BUILT_PRODUCTS_DIR)/include/**
@michaelnisi
michaelnisi / gist:5645933
Created May 24, 2013 19:27
Hex to RGB macro for Objective-C
#define RGB(hex) [UIColor colorWithRed:((float)((hex & 0xFF0000) >> 16)) / 255.0 \
green:((float)((hex & 0xFF00) >> 8)) / 255.0 \
blue:((float)(hex & 0xFF)) / 255.0 \
alpha:1.0]
@michaelnisi
michaelnisi / install.sh
Created November 17, 2012 18:32
Install Node on Amazon Linux AMI
#!/bin/sh
sudo yum update
sudo yum install gcc-c++
sudo yum install git
git clone git://github.com/joyent/node.git
cd node
git checkout v0.8.14
@michaelnisi
michaelnisi / gist:3945328
Created October 24, 2012 10:16
Uninstall XCode
sudo /Developer/Library/uninstall-devtools --mode=all
@michaelnisi
michaelnisi / gist:3945325
Created October 24, 2012 10:14
Uninstall Google Software Updater
sudo /Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Resources/GoogleSoftwareUpdateAgent.app/Contents/Resources/install.py --uninstall
@michaelnisi
michaelnisi / difference.md
Created August 7, 2012 16:43
Richard Ford, The Sportswriter

When you are fully in your emotions, when they are simple and appealing enough to be in, and the distance is closed between what you might also feel, then your instincts can be trusted. It is the difference between a man who quits his job to become a fishing guide on Lake Big Trout, and who one day as he is paddling his canoe into the dock at dusk, stops paddling to admire the sunset and realizes how much he wants to be fishing guide on Lake Big Trout; and another man who has made the same decision, stopped paddling at the same time, felt how glad he was, but also thought he could probably be a guide on Windigo Lake if he decided to, and might also get a better deal on canoes. Another way of describing this is that it's the difference between a literalist and a factualist. A literalist is a man who will enjoy an afternoon watching people while stranded in an airport in Chicago, while a factualist can't stop wondering why his plane was late out of Salt Lake, and gauging wether they'll still serve dinner or j

@michaelnisi
michaelnisi / Analyse von „Shockwave Flash (Chrome-Plug-in-Host)“
Created July 31, 2012 17:08
GMail in Chrome attempts to use its integrated Flash Player to access address book on OS X.
Sampling process 957 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Google Chrome Helper EH (pid 957) every 1 millisecond
Process: Google Chrome Helper EH [957]
Path: /Applications/Google Chrome.app/Contents/Versions/20.0.1132.57/Google Chrome Helper EH.app/Contents/MacOS/Google Chrome Helper EH
Load Address: 0x15000
Identifier: com.google.Chrome.helper.EH
Version: 20.0.1132.57 (1132.57)
Code Type: X86 (Native)
Parent Process: Google Chrome [941]
@michaelnisi
michaelnisi / remove_ds_store_files.sh
Created December 27, 2011 17:55
Find and remove all .DS_Store files in current folder
find ./ -name ".DS_Store" -depth -exec rm {} \;