Skip to content

Instantly share code, notes, and snippets.

View ascarter's full-sized avatar

Andrew Carter ascarter

View GitHub Profile
#
# 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
$ 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
//
// 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.
//
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
@ascarter
ascarter / bbcurl.sh
Created August 19, 2011 19:21 — forked from alexkingorg/bbcurl.sh
View source from a URL in BBEdit
function bbcurl () {
curl $1 | bbedit --new-window +1 -t $1
}
#!/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')
@ascarter
ascarter / log.go
Created December 31, 2014 01:32
HTTP request logger in Go
package __package__
import (
"net/http"
"time"
)
type responseLogger struct {
w http.ResponseWriter
status int
@ascarter
ascarter / logex.go
Last active September 1, 2017 01:39
Log wrapper for Go stdlib logger
package log
import (
"io"
"io/ioutil"
stdlog "log"
"os"
)
var (

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:

@ascarter
ascarter / dk
Created December 1, 2017 19:53
Run app via docker
#!/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}_"