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) |
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
#!/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 | |
# |
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
// -*- 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); |
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/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 |
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/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 |