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
% chef-apply -l info recipe.rb | |
[2014-08-14T23:38:46-04:00] INFO: Run List is [] | |
[2014-08-14T23:38:46-04:00] INFO: Run List expands to [] | |
Recipe: (chef-apply cookbook)::(chef-apply recipe) | |
* ruby_block[demo] action run[2014-08-14T23:38:46-04:00] INFO: Processing ruby_block[demo] action run ((chef-apply cookbook)::(chef-apply recipe) line 2) | |
[2014-08-14T23:38:46-04:00] INFO: ruby_block[demo] called | |
- execute the ruby block demo | |
* log[demo] action write[2014-08-14T23:38:46-04:00] INFO: Processing log[demo] action write ((chef-apply cookbook)::(chef-apply recipe) line 9) | |
[2014-08-14T23:38:46-04:00] INFO: Hello world |
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
#!/bin/sh | |
# Nuke and pave all the freeware RPMs | |
rpm -qa | sed -e 's/\-[AIX Servers^\-]*\-[AIX Servers^\-]*$//' | egrep -v '(AIX-rpm|zlib|gettext)' | xargs rpm -e | |
# Get all deps for wget | |
perl -e 'use LWP::Simple; getprint($ARGV[0]);' ftp://www.oss4aix.org/rpmdb/deplists/aix61/wget-1.15-1.aix5.1.ppc.deps > /tmp/wget-1.15-1.aix5.1.ppc.deps | |
while read i; do | |
perl -e 'use LWP::Simple; getprint($ARGV[0]);' ftp://www.oss4aix.org/everything/RPMS/${i} > /tmp/${i} |
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
ruby -r rbconfig -r pp -e 'pp RbConfig::CONFIG' |
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
Start: Mon Jul 21 20:22:01 2014 | |
HOST: borkbork.nyc.urbandecoder.n Loss% Snt Last Avg Best Wrst StDev | |
1.|-- nectar.nyc.urbandecoder.n 0.0% 25 0.9 2.1 0.8 12.7 2.9 | |
2.|-- l100.nycmny-vfttp-59.veri 0.0% 25 5.3 8.5 4.8 32.2 7.2 | |
3.|-- g0-1-3-3.nycmny-lcr-21.ve 4.0% 25 16.6 11.9 8.5 16.6 2.2 | |
4.|-- ae3-0.ny325-bb-rtr2.veriz 0.0% 25 19.9 17.7 7.2 59.9 14.9 | |
5.|-- ??? 100.0 25 0.0 0.0 0.0 0.0 0.0 | |
6.|-- 0.ae2.br3.nyc4.alter.net 0.0% 25 7.9 9.3 7.4 16.4 2.0 | |
7.|-- 204.255.168.66 0.0% 25 9.9 10.7 7.8 26.5 4.0 | |
8.|-- ??? 100.0 25 0.0 0.0 0.0 0.0 0.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
# Recipe code | |
service 'true_guard' do | |
action :start | |
only_if { File.exist?('/tmp/trueguard') } | |
end | |
service 'false_guard' do | |
action :start | |
not_if { File.exist?('/tmp/falseguard') } |
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
irb(main):001:0> Class.class | |
=> Class | |
irb(main):002:0> Class.superclass | |
=> Module | |
irb(main):003:0> Module.superclass | |
=> Object | |
irb(main):004:0> Object.superclass | |
=> BasicObject | |
irb(main):005:0> BasicObject.superclass | |
=> nil |
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
borkbork ~$ s3cmd mb jdunn-getchef-foo | |
ERROR: Parameter problem: Expecting S3 URI with just the bucket name set instead of 'jdunn-getchef-foo' | |
borkbork ~$ s3cmd mb s3://jdunn-getchef-foo | |
Bucket 's3://jdunn-getchef-foo/' created |
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 NilClass | |
def [] | |
raise "What the hell, dawg, you can't access an element of nil" | |
end | |
def [](a) | |
raise "What the hell, dawg, you can't access element #{a} of nil" | |
end | |
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
node.default['demo'] = true | |
node.default['demoagain'] = false | |
ruby_block 'whee' do | |
block do | |
puts 'Ohai, world' | |
end | |
not_if { node['demo'] } | |
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
fq-guest-wireless-pittnet-150-212-95-96 ~$ ping 150.212.94.1 | |
PING 150.212.94.1 (150.212.94.1): 56 data bytes | |
Request timeout for icmp_seq 0 | |
Request timeout for icmp_seq 1 | |
64 bytes from 150.212.94.1: icmp_seq=0 ttl=255 time=2079.387 ms | |
Request timeout for icmp_seq 3 | |
64 bytes from 150.212.94.1: icmp_seq=1 ttl=255 time=3054.474 ms | |
64 bytes from 150.212.94.1: icmp_seq=2 ttl=255 time=2520.698 ms | |
64 bytes from 150.212.94.1: icmp_seq=3 ttl=255 time=1846.184 ms | |
64 bytes from 150.212.94.1: icmp_seq=4 ttl=255 time=949.714 ms |