cookbook/whatever/libraries/ModuleA.rb
module ModuleA
def functA()
end
end
#!/bin/sh | |
MONITORLIST="/directory/source/:/directory/destination/ /directory/source2/:/directory/destination2/" | |
for pair in $MONITORLIST; do | |
# get the current path | |
CONTENTPATH=$(echo $pair|cut -d ':' -f 1) | |
S3FSPATH=$(echo $pair|cut -d ':' -f 2) | |
CURPATH=$(pwd) |
cookbooks/keymaster/libraries/decrypt.rb | |
class Chef::Recipe::Keymaster | |
def self.DecryptDataBagItem | |
Chef::Log.info("yeah !") | |
end | |
end | |
cookbooks/whatever/recipes/default.rb |
/* Perform efficient multiplication of big numbers | |
* Julien Vehent July 2012 | |
* gcc -DDEBUG -Wall -o bigmult0.2 bigmult0.2.c | |
*/ | |
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <stdlib.h> |
cookbook/whatever/libraries/ModuleA.rb
module ModuleA
def functA()
end
end
ROLE MONGODB | |
'authorization' => { | |
'sudo' => { | |
'groups' => ['dbas'], | |
'passwordless' => false | |
} | |
}, | |
s240int#sh interface GigabitEthernet0/46 | |
GigabitEthernet0/46 is down, line protocol is down (notconnect) | |
Hardware is Gigabit Ethernet, address is 3cdf.1e68.052e (bia 3cdf.1e68.052e) | |
Description: Uplink | |
MTU 1500 bytes, BW 10000 Kbit/sec, DLY 1000 usec, | |
reliability 255/255, txload 1/255, rxload 1/255 | |
Encapsulation ARPA, loopback not set | |
Keepalive not set | |
Auto-duplex, Auto-speed, link type is auto, media type is 1000BaseSX SFP | |
input flow-control is off, output flow-control is unsupported |
merb : chef-server (api) : worker (port 4002) ~ undefined method `closed?' for nil:NilClass - (NoMethodError) | |
/usr/lib/ruby/1.8/net/http.rb:1060:in `request' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/lib/chef/solr_query/solr_http_request.rb:92:in `run' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/lib/chef/solr_query/solr_http_request.rb:53:in `select' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/lib/chef/solr_query.rb:119:in `results' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/lib/chef/solr_query.rb:115:in `object_ids' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/lib/chef/solr_query.rb:105:in `objects' | |
/usr/lib/ruby/gems/1.8/gems/chef-0.10.4/lib/chef/solr_query.rb:124:in `search' | |
/usr/lib/ruby/gems/1.8/gems/chef-server-api-0.10.4/app/controllers/search.rb:43:in `show' | |
/usr/lib/ruby/gems/1.8/gems/merb-core-1.1.3/lib/merb-core/dispatch/dispatcher.rb:29:in `handle' |
merb : chef-server (api) : worker (port 4005) ~ Connection refused - connect(2) - (Bunny::ServerDownError) | |
/usr/lib/ruby/gems/1.8/gems/bunny-0.7.9/lib/qrack/client.rb:227:in `socket' | |
/usr/lib/ruby/gems/1.8/gems/bunny-0.7.9/lib/bunny/client08.rb:369:in `start' | |
/usr/lib/ruby/gems/1.8/gems/bunny-0.7.9/lib/bunny/client08.rb:367:in `loop' | |
/usr/lib/ruby/gems/1.8/gems/bunny-0.7.9/lib/bunny/client08.rb:367:in `start' | |
/usr/lib/ruby/gems/1.8/gems/chef-10.16.2/lib/chef/index_queue/amqp_client.rb:45:in `amqp_client' | |
/usr/lib/ruby/gems/1.8/gems/chef-10.16.2/lib/chef/index_queue/amqp_client.rb:72:in `queue_for_object' | |
/usr/lib/ruby/gems/1.8/gems/chef-10.16.2/lib/chef/index_queue/indexable.rb:95:in `publish_object' | |
/usr/lib/ruby/gems/1.8/gems/chef-10.16.2/lib/chef/index_queue/indexable.rb:74:in `add_to_index' | |
/usr/lib/ruby/gems/1.8/gems/chef-10.16.2/lib/chef/couchdb.rb:118:in `store' |
{
"ipinfo": {
"Location": {
"CityData": {
"area_code": "404",
"city": "atlanta",
"city_cf": 90,
"city_ref_id": 1157627975,
"postal_code": "30309",
#!/bin/bash | |
IP=0 | |
DEBUG="" | |
if [ -z "$1" ];then | |
if [ "$1" = "-d" ];then | |
DEBUG="$1" | |
else | |
IP=1 | |
fi | |
fi |