Skip to content

Instantly share code, notes, and snippets.

View thomasbiddle's full-sized avatar

TJ (Thomas J.) Biddle thomasbiddle

View GitHub Profile
@thomasbiddle
thomasbiddle / librarian-puppet-rake-task
Created October 22, 2012 23:24
Librarian-Puppet Rake Task for Templating the Puppetfile
#!/usr/bin/ruby
require 'erb'
desc "Templates the Puppetfile to the specified environment"
task :template_puppetfile, [:env] do |t, args|
unless args[:env].nil?
@environment = args[:env]
read_file = 'Puppetfile.erb'
write_file = 'Puppetfile'
@thomasbiddle
thomasbiddle / OSXBuildTool.sh
Created August 6, 2012 18:47
OSX Build Tool
cd /tmp
if [ -d /tmp/losops-bt/ ]
then
rm -rf /tmp/losops-bt/
fi
git clone git@git:losops-bt
if [ -f /usr/bin/bt ]
then
sudo rm -rf /usr/bin/bt