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 python | |
# Now you'll be able to read those encoded/compressed | |
# responses in your vcrpy test artifacts! | |
# References: | |
# https://github.com/kevin1024/vcrpy/issues/249 | |
# http://stackoverflow.com/questions/36366234 | |
# Thanks to Reti43 on StackOverflow | |
import sys |
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
http://w.on24.com/r.htm?e=933790&s=1&k=4A2CC635D86AD5D497BDEE5D39396973 |
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
{ | |
"system" => %w/ | |
cpu-metrics | |
cpu-percentage-metrics | |
disk-capacity-metrics | |
disk-capacity-metrics | |
disk-metrics | |
interface-metrics | |
iostat-extended-metrics | |
iostat-metrics |
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
DAEMON_OPTS="-Xmx1024m -Djava.net.preferIPv4Stack=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:MaxPermSize=64M -XX:MaxPermSize=128M -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled" |
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
testing rabbitmq/recipes/default.rb: | |
33 log 'trying with cache_rebuild' do | |
34 level :info | |
35 end | |
36 apt_repository "rabbitmq" do | |
37 uri "http://www.rabbitmq.com/debian/" | |
38 distribution "testing" | |
39 components ["main"] | |
40 key "http://www.rabbitmq.com/rabbitmq-signing-key-public.asc" | |
41 not_if { node['rabbitmq']['use_distro_version'] } |
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 search node 'fqdn:["" TO *]' -a hostname | |
ERROR: knife search failed: invalid search query: 'fqdn:["" TO *]' |
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 ssh -x me -C 10 -G at.some.host '(lsb_id:Ubuntu) AND (fqdn:[a TO b])' 'sudo apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade' | |
WARNING: Failed to connect to -- IOError: closed stream | |
WARNING: Failed to connect to -- Net::SSH::Disconnect: connection closed by remote host |
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 Chef | |
class Recipe | |
def lulz() | |
a_bare_var = nil | |
node[:a_node_attribute] = nil | |
ruby_block "doing_stuff" do | |
block do | |
a_bare_var = 'rotfl' | |
Chef::Log.info("inside, a_bare_var: #{a_bare_var.inspect}") |
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
Process: Python [66419] | |
Path: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python | |
Identifier: org.python.python | |
Version: 2.7.2 (2.7.2) | |
Code Type: X86 (Native) | |
Parent Process: bash [5339] | |
Date/Time: 2012-01-07 09:18:22.658 -0500 | |
OS Version: Mac OS X 10.6.8 (10K549) | |
Report Version: 6 |
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
kyoder@green 08 Nov 18:03:51 /tmp | |
$ mkdir git_repo_source | |
kyoder@green 08 Nov 18:03:56 /tmp | |
$ cd git_repo_source/ | |
kyoder@green 08 Nov 18:03:59 /tmp/git_repo_source | |
$ git init . | |
Initialized empty Git repository in /private/tmp/git_repo_source/.git/ |