Skip to content

Instantly share code, notes, and snippets.

View micahwalter's full-sized avatar
👋

Micah Walter micahwalter

👋
View GitHub Profile
@micahwalter
micahwalter / gist:1120284
Created August 2, 2011 14:21
bulk delete snapshots
$ sudo vi /etc/apt/sources.list
$ sudo apt-get update
$ sudo apt-get install ec2-api-tools
$ ec2-describe-snapshots -K your-private-key.pem -C cour-cert.pem | sort -r -k 5 | sed 1,6d | awk '{print "Deleting snapshot: " $2}; system("ec2-delete-snapshot -K your-private-key.pem -C your-cert.pem " $2)'
@micahwalter
micahwalter / gist:1063636
Created July 4, 2011 17:12
wp-config for mamp and phpfog
/** The name of the database for WordPress */
if ( getenv('DB_NAME'))
define('DB_NAME' , getenv('DB_NAME'));
else
define('DB_NAME', 'YOUR-MAMP-DATABASE-NAME');
/** MySQL database username */
if ( getenv('DB_USER'))
define('DB_USER' , getenv('DB_USER') );
else
$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
$ mate .profile
[[ -s "/Users/micah/.rvm/scripts/rvm" ]] && source "/Users/micah/.rvm/scripts/rvm" # This loads RVM into a shell session.
$ rvm install 1.9.2
#!/bin/ruby
require 'skeleton'
class BuyThatBot < Skeleton
def search
debug "check for tweets since #{@config[:since_id]}"
#
# search twitter
@micahwalter
micahwalter / gist:926497
Created April 18, 2011 23:17
editing ui.properties
$ mate /Applications/CrashPlan.app/Contents/Resources/Java/conf/ui.properties
#Fri Dec 09 09:50:22 CST 2005
#serviceHost=127.0.0.1
servicePort=4200
#pollerPeriod=1000 # 1 second
#connectRetryDelay=10000 # 10 seconds
#connectRetryAttempts=3
#showWelcome=true
#font.small=
#font.default=
@micahwalter
micahwalter / gist:926397
Created April 18, 2011 22:32
tunneling to crashplan on linux server
$ ssh -i your.pem -L 4200:localhost:4243 user@your.servers.ip
@micahwalter
micahwalter / gist:926389
Created April 18, 2011 22:30
installing crahsplan on linux
$ tar -xvf CrashPlan_3.0.3_Linux.tgz
$ sudo -s
$ cd CrashPlan-install
$ ./install.sh
$ sudo vi /etc/netatalk/AppleVolumes.default
~/ "$u"
$ sudo apt-get install netatalk
$ sudo /etc/init.d/avahi-daemon restart