Skip to content

Instantly share code, notes, and snippets.

@olistik
olistik / poll_repository.sh
Created May 18, 2011 14:02
poll git repository
#!/bin/bash
while true; do
echo "Checking git repository.."
date -u
git_status=`git pull`
if [[ $git_status != *up-to-date* ]]; then
growlnotify -m "Repository updated" -s
else
echo "no updates"
@lusis
lusis / quick and dirty ec2.rb
Created November 15, 2010 18:27
quick and dirty ec2 auditing
require 'net/ssh/multi'
require 'fog'
require 'yaml'
require 'optparse'
options = {}
optparse = OptionParser.new do |opts|
opts.banner = "Usage: audit.rb [options]"