This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for cookbook in $(find * -type d -maxdepth 0); do | |
git clone ./ ../${cookbook} | |
cd ../${cookbook} | |
git remote rm origin | |
git filter-branch --subdirectory-filter ${cookbook} -- --all | |
git gc --aggressive | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class OnDestroyMiddleware | |
def initialize(app, env) | |
@app = app | |
end | |
def call(env) | |
env["config"].vm.provisioners.each do |provisioner| | |
next unless provisioner.config.class.name.match(/::ChefClient/) | |
env.ui.info "Attempting to remove client #{provisioner.config.node_name}" | |
`knife client show #{provisioner.config.node_name}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adapted from Dr. Watson's 5.5.8 formula | |
# https://github.com/dctrwatson/homebrew/blob/5fe26cbc27eceb0955836f9b5434c3ed6ef0de76/Library/Formula/mysql55.rb | |
require 'formula' | |
class Mysql55 < Formula | |
homepage 'http://dev.mysql.com/doc/refman/5.5/en/' | |
url 'http://mysql.mirrors.pair.com/Downloads/MySQL-5.5/mysql-5.5.9.tar.gz' | |
md5 '701c0c44b7f1c2300adc0dc45729f903' | |
depends_on 'readline' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# -*- shell -*- | |
sudo su - | |
# | |
# Audio: fix ubuntu 9.04 broken sound | |
# | |
apt-get install build-essential xmlto libncurses5-dev |