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
[INFO 05-17-2010 10:29:25] Vagrant: Beginning provisioning process... | |
[INFO 05-17-2010 10:29:25] Vagrant: Setting permissions on chef provisioning folder... | |
[INFO 05-17-2010 10:29:25] Vagrant: Generating chef JSON and uploading... | |
[INFO 05-17-2010 10:29:25] Vagrant: Uploading chef configuration script... | |
[INFO 05-17-2010 10:29:26] Vagrant: Running chef-solo... | |
[INFO 05-17-2010 10:29:26] Vagrant: sudo: stderr | |
[INFO 05-17-2010 10:29:26] Vagrant: : : stderr | |
[INFO 05-17-2010 10:29:26] Vagrant: chef-solo: command not found: stderr | |
[INFO 05-17-2010 10:29:26] Vagrant: | |
: stderr |
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
### | |
# Generated by Chef for vagrant-debian-lenny.vagrantup.com | |
### | |
NODENAME=rabbit | |
NODE_IP_ADDRESS=0.0.0.0 | |
NODE_PORT=5672 | |
SERVER_ERL_ARGS=+K true +A 30 -kernel inet_default_listen_options [{nodelay,true},{sndbuf,16384},{recbuf,4096}] -kernel inet_default_connect_options [{nodelay,true}] | |
CLUSTER_CONFIG_FILE=/etc/rabbitmq/rabbitmq_cluster.config | |
LOG_BASE=/var/log/rabbitmq |
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 | |
hostname=$(hostname) | |
cnode=${hostname##cnode} | |
cnode=${cnode%%-*} | |
pod=${hostname##*pod} | |
pod=${pod%%.*} | |
storip=`printf "10.32.%d.%d\n" $pod $cnode` |
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
class Bowling | |
def self.score(scores) | |
init_value = [scores, []] | |
Array.new(10).inject(init_value) { |l, i| process_scores(l) }[1].inject { |sum, n| sum + n } | |
end | |
def self.process_scores(some_stuff) | |
list = some_stuff[0] | |
if list[0] == 10 | |
some_stuff[1] << list[0] + list[1] + list[2]; some_stuff[0] = list[1..-1] |
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
sudo kvm -nographic -m 512 -smp 2 -drive if=virtio,file=vdisk.img,boot=on -net nic,model=virtio,vlan=0,macaddr=DE:AD:BE:EF:31:17 -net tap,vlan=0,downscript=no -kernel /vmlinuz -append 'initrd=initrd.img root=/dev/ram0 console=tty0 console=ttyS0,19200' -initrd /initrd.img |
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
def get_error_log(prefix): | |
def error_log(msg_or_exc): | |
global unmounted | |
if hasattr(msg_or_exc, 'http_status') and \ | |
msg_or_exc.http_status == 507: | |
identifier = '%s:%s/%s' | |
if identifier not in unmounted: | |
unmounted.append(identifier) | |
print >>stderr, 'ERROR: %s:%s/%s is unmounted -- This will ' \ | |
'cause replicas designated for that device to be ' \ |
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
def foo(something) | |
def bar(some_other_thing) | |
do some stuff with something and some_other_thing | |
return bar | |
i_am_a_function = foo(baz) | |
i_am_a_function(value_other_thing) |
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
The required version of setuptools (>=0.6c11) is not available, and | |
can't be installed while this script is running. Please install | |
a more recent version first, using 'easy_install -U setuptools'. | |
(Currently using setuptools 0.6c9 (/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python)) | |
.... | |
setuptools 0.6c12dev-r84273 is already the active version in easy-install.pth |
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
>> "/".gsub("/", "\/") | |
=> "/" | |
>> "/".gsub("/", "\\/") | |
=> "\\/" |
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
WORKFLOW_HISTORY_STEPS = [ "a bunch of stuff", | |
"more stuff", | |
"some stuff", | |
"god make it stop"] | |
def client_workflow_history? | |
WORKFLOW_HISTORY_STEPS.all? { |step| @@b.text.include?(step) } | |
end |