View dk
#!/bin/sh
# Run app via docker
dk() {
# Usage: dk <cmd> <app> [args]
local cmd=$1; shift
local app=$1; shift
local args=$*
local name_prefix="${USER}_"
View keybase.md

Keybase proof

I hereby claim:

  • I am ascarter on github.
  • I am ascarter (https://keybase.io/ascarter) on keybase.
  • I have a public key ASD6MZm3JbqHYXOkhB-wr_5yya86iKzlgAH-OMez-Z3FAwo

To claim this, I am signing this object:

View logex.go
package log
import (
"io"
"io/ioutil"
stdlog "log"
"os"
)
var (
View gist:ee59aeacd7695d711bbcf2a3063a06b4
andrew@Andrews-iMac:~
$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>
inet 127.0.0.1 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 (
"net/http"
"time"
)
type responseLogger struct {
w http.ResponseWriter
status int
View batterycharge.py
#!/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
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 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
//
// 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
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