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
#RVM | |
[[ -s "/Users/sme/.rvm/scripts/rvm" ]] && source "/Users/sme/.rvm/scripts/rvm" # load RVM into a shell session. | |
# ALIASES | |
alias l='ls -F -h' | |
alias ll='ls -l -F -h' | |
alias la='ls -a -F -h' | |
alias lla='ls -l -a -F -h' | |
# command equivalents |
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
execute "create-tunnelblick-#{u['id']}" do | |
cwd node["openvpn"]["key_dir"] | |
command <<-EOH | |
mkdir #{u['id']}.tblk; cp ca.crt #{u['id']}.{crt,key,conf,ovpn} #{u['id']}.tblk | |
EOH | |
not_if { ::File.directory?("#{u['id']}.tblk") } | |
end |
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_dir in `ls community-cookbooks`; do | |
if [ $cookbook_dir != 'readme.md' ]; then | |
REPO=chef-$cookbook_dir | |
git clone --no-hardlinks ./community-cookbooks/ $REPO | |
SAVEDIR=`pwd` | |
cd $REPO | |
git filter-branch --subdirectory-filter $cookbook_dir HEAD -- --all --prune-empty | |
git reset --hard |
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
# | |
# Cookbook Name:: collectd_plugins | |
# Recipe:: librato | |
# | |
# Copyright 2012, Sean Escriva <sean.escriva@gmail.com> | |
# | |
case node.platform | |
when "ubuntu", "debian" | |
package "libpython2.7" |
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
name "collectd_server" | |
description "collectd server role" | |
run_list [ "recipe[collectd::server]" ]. | |
concat( %w{ syslog librato cpu df disk interface memory swap }.map do |plugin| | |
"recipe[collectd_plugins::#{plugin}]" | |
end ) |
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
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/amqp-0.7.4/lib/amqp/channel.rb:833:in `send': The channel 1 was closed, you can't use it anymore! (AMQP::ChannelClosedError) | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/amqp-0.7.4/lib/amqp/channel.rb:826:in `each' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/amqp-0.7.4/lib/amqp/channel.rb:826:in `send' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/amqp-0.7.4/lib/amqp/channel.rb:825:in `synchronize' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/amqp-0.7.4/lib/amqp/channel.rb:825:in `send' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/eventmachine-1.0.0.beta.4/lib/em/deferrable.rb:48:in `call' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/eventmachine-1.0.0.beta.4/lib/em/deferrable.rb:48:in `callback' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/amqp-0.7.4/lib/amqp/channel.rb:824:in `send' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/amqp-0.7.4/lib/amqp/queue.rb:195:in `delete' | |
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/eventmachine- |
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
3 1 Building Abstractions with Procedures | |
4 *************************************** | |
5 | |
6 The acts of the mind, wherein it exerts its power over simple | |
7 ideas, are chiefly these three: 1. Combining several simple ideas | |
8 into one compound one, and thus all complex ideas are made. 2. | |
9 The second is bringing two ideas, whether simple or complex, | |
10 together, and setting them by one another so as to take a view of | |
11 them at once, without uniting them into one, by which it gets all | |
12 its ideas of relations. 3. The third is separating them from all |
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
package "collectd" do | |
package_name value_for_platform( ["centos", "redhat", "suse", "fedora"] => { | |
"default" => "collectd" }, | |
["ubuntu", "debian"] => { | |
"default" => "collectd-core" } ) | |
end |
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
knife cookbook list | awk '{print "\""$1"\" => \"= "$2"\","}' |
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
(setq | |
backup-by-copying t | |
backup-directory-alist | |
'(("." . "~/.saves")) | |
delete-old-versions t | |
kept-new-versions 5 | |
kept-old-version 2 | |
version-control t) |
OlderNewer