Skip to content

Instantly share code, notes, and snippets.

View kidbrax's full-sized avatar

Braxton Beyer kidbrax

View GitHub Profile
@kidbrax
kidbrax / bundle-to-ebs.sh
Created January 14, 2010 23:56 — forked from fairchild/bundle-to-ebs.sh
bundle instance to ebs #shell
#!/bin/bash -xe
EBS_DEVICE='/dev/sdh'
INSTANCE_ID=$1
AKI=${2:-'aki-5f15f636'}
ARI=${3:-'ari-0915f660'}
ARCH=${4:-'i386'}
SIZE=${5:-10}
AZ=${6:-'us-east-1d'}
NAME=${7:-"ami-from-$INSTANCE_ID"}
@kidbrax
kidbrax / librets.rb
Created June 15, 2011 23:58
homebrew formulas for librets
require 'formula'
class Librets < Formula
url 'http://www.crt.realtors.org/projects/rets/librets/files/librets-1.5.2.tar.gz'
homepage 'http://code.crt.realtors.org/projects/librets'
md5 '74bcea0eb11f3c66cde5dc3ecea05224'
depends_on 'boost'
depends_on 'curl'
depends_on 'expat'
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
if (this.originalType) {
this.type = this.originalType;
delete this.originalType;
}
input.val('');
input.removeClass('placeholder');
}