Skip to content

Instantly share code, notes, and snippets.

View geoffreyanderson's full-sized avatar
😀
woo hoo!!

Geoffrey Anderson geoffreyanderson

😀
woo hoo!!
View GitHub Profile

Keybase proof

I hereby claim:

  • I am geoffreyanderson on github.
  • I am geoffgeoffreyand (https://keybase.io/geoffgeoffreyand) on keybase.
  • I have a public key whose fingerprint is 5769 3B71 C4E7 E10D 5DFF 0F94 7DD5 D949 D979 84AD

To claim this, I am signing this object:

$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install contacts 2>&1
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
==> Downloading https://github.com/dhess/contacts/archive/4092a3c6615d7a22852a3bafc44e4aeeb698aa8f.tar.gz
Already downloaded: /Library/Caches/Homebrew/contacts-1.1a-3.tar.gz
tar xf /Library/Caches/Homebrew/contacts-1.1a-3.tar.gz
==> make
make
xcodebuild -configuration Deployment -target contacts
=== BUILD NATIVE TARGET contacts OF PROJECT contacts WITH CONFIGURATION Deployment ===
Check dependencies
@geoffreyanderson
geoffreyanderson / mysql_client_identifiable_comment.patch
Created January 11, 2013 05:06
This patch can be applied to the mysql client in Percona-Server-5.5.28-rel29.3 to add a new option "--identifiable-comment" (defaulted to on) that appends a comment in the form of "user=os_username&host=source_host&pid=pid_of_mysql_client" to every query sent from the mysql client.
--- client/mysql.cc 2013-01-06 22:29:49.000000000 -0800
+++ client/mysql.cc 2013-01-10 20:31:12.000000000 -0800
@@ -42,6 +42,7 @@
#include <violite.h>
#ifndef __WIN__
#include "syslog.h"
+#include <pwd.h>
#endif
#define MAX_SYSLOG_MESSAGE 900
@geoffreyanderson
geoffreyanderson / syncFilesystemToImage.sh
Created June 2, 2011 18:19 — forked from fairchild/bundle-to-ebs.sh
A script to rsync a running Linux OS to an image file (specifically, a 10GB image file for deployment to AWS EC2).
#!/bin/bash
# Run this script on a running Linux OS that you want to be put into an image file.
# Ensure that the system you run this on is less than 10GB in size if you wish to
# deploy the image file to AWS EC2.
# Note: This is based on Michael Fairchild's instance-to-ebs-ami.sh script.
# -https://gist.github.com/249915
imageFile=${1:-"awsImage-$(date +%m%d%y-%H%M).img"}
imageMountPoint=${2:-'/mnt/image'}
extraFilesArchive=${3:-'awsInstanceFiles.tar.gz'}