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
# | |
# Author:: Adam Jacob (<[email protected]>) | |
# Copyright:: Copyright (c) 2008 Opscode, Inc. | |
# License:: Apache License, Version 2.0 | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
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
bash -c ' | |
if [ ! -f /usr/bin/chef-client ]; then | |
pkg refresh | |
echo "Installing gcc-3 and header-math packages." | |
pkg install -q gcc-3 | |
pkg install -q header-math | |
if [ ! -f /usr/bin/ruby ]; then | |
cd /tmp | |
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz | |
tar xvfz ruby-1.9.2-p290.tar.gz |
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
["cert1", "cert2"].each do |cert| | |
cookbook_file "#{node[:nginx][:dir]}/ssl/#{cert}" do | |
owner node[:nginx][:user] | |
mode "0600" | |
source "ssl/#{cert}" | |
notifies :run, "execute[add chain certificate #{cert}]" | |
notifies :restart, "service[nginx]" | |
end | |
execute "add chain certificate #{cert}" do |
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
#!/usr/bin/python | |
from optparse import OptionParser | |
import sys, os | |
parser = OptionParser() | |
parser.add_option("-i", "--instance-home", dest="instance_home", | |
help="Path to Zope-instance.") | |
parser.add_option("-s", "--software-home", dest="software_home", | |
help="Path to Zope-installed python. (/usr/lib/zope-2.9.3/lib/python)", | |
default="/usr/lib/zope-2.9.3/lib/python") |
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
Erlang R13B03 (erts-5.7.4) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false] | |
Eshell V5.7.4 (abort with ^G) | |
1> xmerl_ucs:from_utf8(<<"foo">>). | |
** exception error: undefined function xmerl_ucs:from_utf8/1 | |
2> |
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
=ERROR REPORT==== 10-Jun-2011::00:47:20 === | |
** Generic server rabbit_mgmt_db terminating | |
** Last message in was {'$gen_cast', | |
{event, | |
{event,connection_created, | |
[{pid,<0.10285.0>}, | |
{address,{127,0,0,1}}, | |
{port,5672}, | |
{peer_address,{127,0,0,1}}, | |
{peer_port,41927}, |
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
Activating RabbitMQ plugins ... | |
6 plugins activated: | |
* amqp_client-2.4.1 | |
* mochiweb-1.3 | |
* rabbit_management-2.4.1 | |
* rabbit_management_agent-2.4.1 | |
* rabbit_mochiweb-2.4.1 | |
* webmachine-1.7.0 | |
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
Last login: Mon Apr 4 12:51:53 on ttys001 | |
Phantome:jasonjwwilliams $ brew install riak | |
==> Downloading http://downloads.basho.com/riak/riak-0.14/riak-0.14.1.tar.gz | |
File already downloaded and cached to /Users/jasonjwwilliams/Library/Caches/Homebrew | |
==> make all rel | |
fatal: Not a git repository (or any of the parent directories): .git | |
./rebar get-deps | |
fatal: Not a git repository (or any of the parent directories): .git | |
fatal: Not a git repository (or any of the parent directories): .git | |
fatal: Not a git repository (or any of the parent directories): .git |
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
Phantome:jasonjwwilliams $ echo '{"hi" : 3, "1": [1,2, {"test": 3, "me": "yo"}]}' | jsonpipe | |
/ {} | |
/hi 3 | |
/1 [] | |
/1/0 1 | |
/1/1 2 | |
/1/2 {} | |
/1/2/test 3 | |
/1/2/me "yo" | |
Phantome:jasonjwwilliams $ echo '{"hi" : 3, "1": [1,2, {"test": 3, "me": "yo"}]}' | jsonpipe | grep "/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
############################################### | |
# RabbitMQ in Action | |
# Chapter 5 - Cluster Test Producer | |
# | |
# Requires: pika >= 0.9.5 | |
# | |
# Author: Jason J. W. Williams | |
# (C)2011 | |
############################################### | |
import sys, time, json, pika |