Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@c10l
c10l / .zshrc
Created February 15, 2016 09:43
Fix Homebrew on OS X El Capitan
function _brew () {
for f in /usr/local/*; do
if [ ! -w "${f}" ]; then
echo 'Fixing /usr/local ownership...'
sudo chown -R $(whoami):admin /usr/local
break
fi
done
brew $*
}
input {
tcp {
codec => line {
charset => "ISO8859-1"
}
port => <%= port %>
tags => ["syslog"]
}
}
filter {
@c10l
c10l / Vagrantfile
Created December 6, 2012 11:57
Vagrant delete Chef node and Client on destroy
module Vagrant
module Provisioners
class ChefClient
def cleanup
env[:ui].info "Attempting to remove client #{env[:vm].config.vm.host_name}"
`knife client show #{env[:vm].config.vm.host_name}`
if $?.to_i == 0
env[:ui].info "Removing client #{env[:vm].config.vm.host_name}"
`knife client delete #{env[:vm].config.vm.host_name} -y`
end
@c10l
c10l / my_application.rb
Created October 4, 2012 18:20
merge namespaces
...
set :stack, :php
...
# At this point, I want deploy:restart to be overwritten by php:deploy:restart etc