I hereby claim:
- I am nmische on github.
- I am nmische (https://keybase.io/nmische) on keybase.
- I have a public key whose fingerprint is B0D6 2F20 F79E D694 13D4 41B7 5E3E E9A3 7E57 35CD
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
wrench | |
hosts | |
-i --include-context comma delimited string of regular expression strings | |
-x --exclude-context comma delimited string of regular expression strings | |
-d --data-centers list of datacenters | |
"datacenter ip hostname" | |
bundle agent netapp_nfs(server, source) { | |
storage: | |
"/data" | |
mount => netapp_mount($(server), $(source)), | |
classes => classes_generic("netapp_nfs"); | |
} | |
body mount netapp_mount(server, source) { | |
mount_type => "nfs"; | |
mount_server => "$(server)"; |
nc -v -z -w 3 google.com 80 &> /dev/null && echo "Online" || echo "Offline" |
Using a Vagrant box (chef/centos-7.0) as the build server:
$ yum install rpm-build
... get rpmrebuild rpm from sourceforge
$ rpm -Uvh rpmrebuild-2.11-1.noarch.rpm
... get oracle jdk rpm from oracle
#! /bin/sh | |
cf-agent --bootstrap --policy-server 10.0.2.15 |
new File('~/tmp').eachFile { | |
def toolkit = new CharsetToolkit(it) | |
def cs = toolkit.getCharset().toString() | |
def filePath = it.path + '/' + it.name | |
println filePath + ': ' + cs | |
if (cs != 'UTF-8') { | |
def content = it.getText(cs) | |
it.write(content ,'UTF-8') |
# We can sort using a custom adjacency index that allows us to pick the starting node. | |
tickets = [('PHL','NYC'),('IAD','PHL'),('SFO','IAD'),('NYC','SFO')] | |
sortedTickets = [] | |
index = {} | |
for t in tickets: | |
if t[0] not in index: | |
index[t[0]] = t | |
def getNext(ticket): |
comm -23i <(cat full.txt | sort | uniq -i) <(cat dupes.txt | sort | uniq -i) |