Instantly share code, notes, and snippets.

View Makefile
# TODO: Make this target diff whats on the chef server versus whats
# about to go to the chef server. This way we can catch any out of
# band changes that might have happened and can recover from them.
#
# TODO: Make this target clean the chef server of any objects not in
# version control.
chef-bags:
@$(foreach bag,$(shell basename .chef/data_bags/*), \
knife data bag create $(bag) ; \
knife data bag from file $(bag) .chef/
View gist:82399ed73623e56736cfbc35bb1bda20
# 1x3, k,n,w + a,i,o + ???
$ egrep -i '^((k|n|w)(a|e|i|o)[a-z][a-z][a-z]$)' /usr/share/dict/words
621
$
# 2x3, ka-kz,wa-wz + ???
$ egrep -i '^((k|w)[a-z](a|e|g|i|l|o|s|t)[a-z][a-z][a-z]$)’ /usr/share/dict/words
399
$
View gist:9b9cc823ef30b25bfbbcd700a7e714fa
"Winmail.dat files are created when Outlook, which sends mail by default as HTML,
sends to a device with a native Apple Mail app (iPhones, Macs, and such). Apple
mail does not have an ability to read HTML, so what does it do but convert it
into another format, Rich-text. Upon converting to Rich-text, the attachment is
converted from whatever wholsome filetype it was into the dreaded werebeast that
is winmail.dat."
View hub
github.com:
- user: filler
oauth_token: aaabbbccc
protocol: https
github.company.com:
- user: my-ldap-login
oauth_token: xxxyyyzzz
protocol: https
View dsn.log
This is an automatically generated Delivery Status Notification
THIS IS A WARNING MESSAGE ONLY.
YOU DO NOT NEED TO RESEND YOUR MESSAGE.
Delivery to the following recipient has been delayed:
Jane.Doe@cpa.texas.gov
View emacs confirmed!
Delivered-To: nick@silkey.org
Received: by 10.140.93.164 with SMTP id d33csp2213602qge;
Tue, 26 Jan 2016 16:47:54 -0800 (PST)
X-Received: by 10.55.42.227 with SMTP id q96mr2230222qkq.101.1453855674135;
Tue, 26 Jan 2016 16:47:54 -0800 (PST)
Return-Path: <rms@gnu.org>
Received: from eggs.gnu.org (eggs.gnu.org. [2001:4830:134:3::10])
by mx.google.com with ESMTPS id l13si3543097qhl.44.2016.01.26.16.47.54
for <nick@silkey.org>
View attribs
default['zabbix']['user_databag']['enabled'] = false
default['zabbix']['user_databag']['name'] = 'credentials'
default['zabbix']['user_databag']['item'] = 'zabbix'
default['zabbix']['user_databag']['secret'] = '/etc/chef/secret'
View gist:8d75f69edaf4f0717d80
30 Jun 20:53:38 - RECV: :DandyPandy!daniel.givens@rackspace-23mc1h.res.rr.com PRIVMSG #dnsaas :It looks like most status calls are failing right now.
30 Jun 20:53:38 - Message parsed: PRIVMSG
undefined:1
<script id="channel_list_template" type="text/x-handlebars-template">{{#each c
^
SyntaxError: Unexpected token <
at Object.parse (native)
at IncomingMessage.<anonymous> (/root/slack-irc/node_modules/slack-client/src/client.js:669:28)
at IncomingMessage.emit (events.js:117:20)
View Makefile
PREP=source $(HOME)/.openrc/dnsaasci && \
export ANSIBLE_HOST_HEY_CHECKING=false && \
ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null \
-o ControlMaster=auto \
-o ControlPersist=60s \
-o StrictHostKeyChecking=no \
-o PubkeyAuthentication=yes'
PLAY=ansible-playbook deploy.yml
View gist:ca900f53ae55592039e2
-----> Installing Chef Omnibus (11.16.4)
downloading https://www.chef.io/chef/install.sh
to file /tmp/install.sh
trying wget...
Downloading Chef 11.16.4 for ubuntu...
downloading https://www.chef.io/chef/metadata?v=11.16.4&prerelease=false&nightlies=false&p=ubuntu&pv=14.04&m=x86_64
to file /tmp/install.sh.1583/metadata.txt
trying wget...
url https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/13.04/x86_64/chef_11.16.4-1_amd64.deb
a9965ce5811ddd75af1b587e40cca934