Andrew Carter ascarter

View batterycharge.py
1 2 3 4 5 6 7 8 9 10
#!/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')
View bbcurl.sh
1 2 3
function bbcurl () {
curl $1 | bbedit --new-window +1 -t $1
}
View gist:605760
1 2 3 4 5
Ld build/Debug-iphonesimulator/UnitTests.octest/UnitTests normal i386
cd /Users/andrew/Projects/clients/moprise/MoshareKit
setenv MACOSX_DEPLOYMENT_TARGET 10.6
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
1 2 3 4 5 6 7 8 9 10
//
// 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
1 2 3 4 5 6 7 8 9 10
$ bundle --help
Tasks:
/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
1 2 3 4 5 6 7 8 9 10
#
# 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 http://httpd.apache.org/docs/2.2/ 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
Something went wrong with that request. Please try again.