This guide assumes a fresh install of Mac OSX 10.7 Lion.
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
#import <Foundation/Foundation.h> | |
#import "PSYSmallTalkBlocks.h" | |
int main (int argc, const char * argv[]) | |
{ | |
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; | |
int value = 0; | |
[PSYNumObj(value == 10) ifTrue:PSYIdVoidBlk({ |
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
# per http://stackoverflow.com/questions/3684484/peak-detection-in-a-2d-array | |
require 'pp' | |
NUM_PEAKS = 5 | |
NEIGHBOR_DISTANCE = 1 | |
data = [[1,2,3,4,5], | |
[2,6,4,4,6], | |
[3,6,7,4,3], |
- $0.015 per GB/m (at least 680 GB), $0.01 per GB/m for more than 100 TB, $0.006 per GB/m for more than 1 PB.
- git-annex discount: at least 100GB, paid annually)
- attic/borg discount: at least 100 GB, paid annually)
- Remote SSH commands (checksum, mv, cp, rm, tree, dd, etc.) supported
- git
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
#!/usr/bin/env python | |
import zipfile | |
import fnmatch | |
from optparse import OptionParser | |
parser = OptionParser("usage: %prog archive [file]") | |
(options, args) = parser.parse_args() | |
try: | |
zf = zipfile.ZipFile(args[0]) |
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 | |
# addDebugSettingsChild.sh | |
# | |
# Simple script to inject a Debug menu in an iPhone Settings plist. | |
# | |
# created 10.15.2008 by Andy Mroczkowski, mrox.net | |
THIS="`basename $0`" | |
PLISTBUDDY="/usr/libexec/PlistBuddy -x" |
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
i386 : iPhone Simulator | |
x86_64 : iPhone Simulator | |
arm64 : iPhone Simulator | |
iPhone1,1 : iPhone | |
iPhone1,2 : iPhone 3G | |
iPhone2,1 : iPhone 3GS | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 GSM Rev A | |
iPhone3,3 : iPhone 4 CDMA | |
iPhone4,1 : iPhone 4S |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
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
#note: there is more to this than is listed here.. this is just minimal stuff, if you want to get even more high speed, contact me. | |
#OS X Named Streams Issue for OSX 10.6 | |
echo "[default]" | sudo tee /etc/nsmb.conf | |
echo "streams=no" | sudo tee -a /etc/nsmb.conf | |
Install Homebrew | |
sudo mkdir /usr/local |
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
#pragma GCC diagnostic ignored "-Wundeclared-selector" |
OlderNewer