This file contains hidden or 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
init([]) -> | |
{ok, Port} = application:get_env(poller, port), | |
PollServer = {poll_server, {mochiweb_http, start, [[{port, Port}, | |
{loop, fun campfire:poll/1}]]}, | |
permanent, 2000, worker, [mochiweb_http]}, | |
PollLogger = {poll_logger, {poll_logger, start_link, []}, | |
permanent, 2000, worker, [poll_logger]}, | |
{ok,{{one_for_one,0,1}, [PollServer, PollLogger]}}. | |
This file contains hidden or 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 "base" | |
description "Base role is applied to all servers." | |
recipes %w{ | |
build-essential | |
chef::client | |
man | |
openldap::auth | |
openssh | |
postfix |
This file contains hidden or 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
uptime 1142 | |
pending_queries 0 | |
processing_queries 5 | |
bored_queryworkers 35 | |
queries 6141 | |
work_queue_for_delete 0 | |
work_queue_for_fsck 850 | |
. | |
This file contains hidden or 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
test |
This file contains hidden or 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
asdf |
This file contains hidden or 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
>> root @ client1 [ /etc/chef ] | |
% hostname -f | |
client1.rack-dfw-int.37signals.com | |
>> root @ client1 [ /etc/chef ] | |
% ohai | grep hostname | |
"hostname": "client1", |
This file contains hidden or 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
if MACOS_VERSION >= 10.6 or ENV['HOMEBREW_USE_LLVM'] | |
ENV['CC'] = '/Developer/usr/llvm-gcc-4.2/bin/llvm-gcc-4.2' | |
ENV['CXX'] = '/Developer/usr/llvm-gcc-4.2/bin/llvm-g++-4.2' | |
cflags = ['-O4'] # O4 baby! | |
else | |
ENV['CC']="gcc-4.2" | |
ENV['CXX']="g++-4.2" | |
cflags = ['-O3'] | |
end |
This file contains hidden or 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
class Foo | |
some_dsl_method :foo => { :key => 'value' }, | |
:bar => { :key => 'bar' } | |
end |
This file contains hidden or 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 'some-role' | |
description 'some role that needs some users' | |
default_attributes :active_groups => { :somegroup => { :enabled => true }, | |
:someothergroup => { :enabled => true } } | |
This file contains hidden or 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
(ido-mode t) | |
(setq ido-enable-prefix nil | |
ido-enable-flex-matching t | |
ido-create-new-buffer 'always | |
ido-use-filename-at-point t | |
ido-max-prospects 10) |