Skip to content

Instantly share code, notes, and snippets.

View webframp's full-sized avatar

Sean Escriva webframp

View GitHub Profile
@webframp
webframp / collectd_server.rb
Created January 11, 2012 06:39
nifty chef run_list via map
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 )
/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-
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
package "collectd" do
package_name value_for_platform( ["centos", "redhat", "suse", "fedora"] => {
"default" => "collectd" },
["ubuntu", "debian"] => {
"default" => "collectd-core" } )
end
knife cookbook list | awk '{print "\""$1"\" => \"= "$2"\","}'
(setq
backup-by-copying t
backup-directory-alist
'(("." . "~/.saves"))
delete-old-versions t
kept-new-versions 5
kept-old-version 2
version-control t)
@webframp
webframp / hack.sh
Created March 31, 2012 21:24 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
// -*- mode: Javascript -*-
// SETTINGS
// use history
url_completion_use_history = true;
// set emacs as external editor
editor_shell_command = 'emacs'
// run_external_editor_function = function (file) {
// keywords(arguments);
#!/bin/zsh
# At the moment, weather, battery bar, time
# TODO:
# mail, cputemp, system load
#
DATE_FORMAT='%A, %Y.%m.%d %H:%M:%S'
GMAIL_CHECK=$HOME/scripts/dzenGmailNotify.py
COC_CHECK=$HOME/scripts/dzgetCOCstats.py
ICONPATH=$HOME/.dzen/icons/dzen_bitmaps
MOCP=/usr/bin/mocp
#!/bin/sh
# Last Modified: 2009 Jan 30 Fri - 00:13:22
FG='#171717' # dark gray
W=1920
if [ `xrandr | grep -c 3840` -ne 0 ]; then
BG='#aeaeae' # light gray
X=1920
Y=0
else
BG='#cfbfad' # off white