View gist:ee59aeacd7695d711bbcf2a3063a06b4
$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=201<PERFORMNUD,DAD>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
View log.go
package __package__
import (
type responseLogger struct {
w http.ResponseWriter
status int
#!/usr/bin/env python
# coding=UTF-8
import argparse
import math
import subprocess
import sys
def main(argv):
parser = argparse.ArgumentParser(description='Display current battery capacity')
function bbcurl () {
curl $1 | bbedit --new-window +1 -t $1
View gist:605760
Ld build/Debug-iphonesimulator/UnitTests.octest/UnitTests normal i386
cd /Users/andrew/Projects/clients/moprise/MoshareKit
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -bundle -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk -L/Users/andrew/Projects/clients/moprise/MoshareKit/build/Debug-iphonesimulator -L/Users/andrew/Projects/clients/moprise/MoshareKit -L/Users/andrew/Projects/clients/moprise/MoshareKit/External/OCMock -F/Users/andrew/Projects/clients/moprise/MoshareKit/build/Debug-iphonesimulator -F/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/Developer/Library/Frameworks -F/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/Developer
View Xcode324iOS41TestSuiteWorkaround.m
// Xcode324iOS41TestSuiteWorkaround.m
// This source file provides a work-around to enable running unit tests
// against the iPhone Simulator in Xcode 3.2.4 with iOS SDK 4.1.
// This work-around is only needed when using Xcode 3.2.4 to target iOS 4.1.
// Copyright 2010 Apple Inc. All rights reserved.
View bundle --help with rvm
$ bundle --help
/Users/andrew/.rvm/gems/ruby-1.9.2-rc2@rails3/bin/bundle check # Checks if the dependencies listed in Gemfile are sa...
/Users/andrew/.rvm/gems/ruby-1.9.2-rc2@rails3/bin/bundle config NAME [VALUE] # retrieve or set a configuration value
/Users/andrew/.rvm/gems/ruby-1.9.2-rc2@rails3/bin/bundle console [GROUP] # Opens an IRB session with the bundle pre-loaded
/Users/andrew/.rvm/gems/ruby-1.9.2-rc2@rails3/bin/bundle exec # Run the command in context of the bundle
/Users/andrew/.rvm/gems/ruby-1.9.2-rc2@rails3/bin/bundle help [TASK] # Describe available tasks or one specific task
/Users/andrew/.rvm/gems/ruby-1.9.2-rc2@rails3/bin/bundle init # Generates a Gemfile into the current working directory
/Users/andrew/.rvm/gems/ruby-1.9.2-rc2@rails3/bin/bundle install # Install the current environment to the system
/Users/andrew/.rvm/gems/ruby-1.9.2-rc2@rails3/bin/bundle lock # Locks the bundle
View apache2.conf
# Based upon the NCSA server configuration files originally by Rob McCool.
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See for detailed information about
# the directives.
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure