Skip to content

Instantly share code, notes, and snippets.

View warwickp's full-sized avatar
🏠
Working from home

Warwick Poole warwickp

🏠
Working from home
View GitHub Profile
2014/12/09 19:54:17 Packer Version: 0.7.2
2014/12/09 19:54:17 Packer Target OS/Arch: darwin amd64
2014/12/09 19:54:17 Built with Go Version: go1.3.3
2014/12/09 19:54:17 [DEBUG] Discoverd plugin: amazon-chroot = /usr/local/bin/packer-builder-amazon-chroot
2014/12/09 19:54:17 [DEBUG] Discoverd plugin: amazon-ebs = /usr/local/bin/packer-builder-amazon-ebs
2014/12/09 19:54:17 [DEBUG] Discoverd plugin: amazon-instance = /usr/local/bin/packer-builder-amazon-instance
2014/12/09 19:54:17 [DEBUG] Discoverd plugin: digitalocean = /usr/local/bin/packer-builder-digitalocean
2014/12/09 19:54:17 [DEBUG] Discoverd plugin: docker = /usr/local/bin/packer-builder-docker
2014/12/09 19:54:17 [DEBUG] Discoverd plugin: googlecompute = /usr/local/bin/packer-builder-googlecompute
2014/12/09 19:54:17 [DEBUG] Discoverd plugin: null = /usr/local/bin/packer-builder-null
Site Leaf Cert Alg Chain Cert(s) Alg(s)
zendesk.com SHA256withRSA SHA384withRSA (!!)
github.com SHA256withRSA SHA256withRSA
twitter.com SHA256withRSA SHA256withRSA
wordpress.com SHA256withRSA SHA256withRSA
asana.com SHA256withRSA SHA256withRSA, root: SHA1withRSA
trello.com SHA256withRSA SHA256withRSA, root: SHA1withRSA
basecamp.com SHA256withRSA SHA1withRSA
zapier.com SHA256withRSA SHA1withRSA
| Site | Leaf Cert Alg | Chain Cert(s) Alg(s) |
| ------------- |:-------------:|:-----:|
|zendesk.com | SHA256withRSA | SHA384withRSA (!!) |
| github.com | SHA256withRSA | SHA256withRSA |
|twitter.com | SHA256withRSA | SHA256withRSA|
| wordpress.com | SHA256withRSA | SHA256withRSA |
| asana.com| SHA256withRSA | SHA256withRSA, root: ```SHA1withRSA```|
| trello.com| SHA256withRSA | SHA256withRSA, root: ```SHA1withRSA```|
| basecamp.com | SHA256withRSA | ```SHA1withRSA``` |
| zapier.com | SHA256withRSA | ```SHA1withRSA``` |

Keybase proof

I hereby claim:

  • I am warwickp on github.
  • I am warwickp (https://keybase.io/warwickp) on keybase.
  • I have a public key whose fingerprint is D0A7 9D61 65BC 4BE5 49B2 00CE 8608 B5AD 581A 1B18

To claim this, I am signing this object:

@warwickp
warwickp / gist:4043049
Created November 9, 2012 01:03 — forked from jtimberman/gist:639638
different ways to get interface IPs
$ grep 'node\[:network\]\[:interfaces\].' \#chef.log
10:15 < mkent_> node[:network][:interfaces][:eth1][:addresses]
22:24 <+Damm> msf, just pulling in the node[:network][:interfaces] attributes
20:44 < randybias> node[:network][:interfaces][:eth0][:addresses]
09:13 < sinBot> so fujin if I wanted to use that in an erb template, it'd be <%= @node[:network][:interfaces]["en1"]["addresses"].select{address}.flatten.to_str %> ?
12:27 < cwj> if i have an ipv4 ip address set on eth0, will it always be in @node[:network][:interfaces][:eth0][1] ?
02:19 < pluesch0r> however, i don't seem to be able to access @node[:network][:interfaces]... from inside the attributes file.
19:52 <@jtimberman> or node[:network][:interfaces][:eth0][:addresses][0]
20:09 < seryl> well, it's searchable. I'm trying the @node[:network][:interfaces][:eth0][:addresses][0] route, but getting blanks right now, playing around with it in chef solo
20:29 < kallistec> pp node[:network][:interfaces].current_attribute
@warwickp
warwickp / sshgen.rb
Created September 20, 2011 05:05
Knife plugin to generate OpenSSH config file from a Chef search
## Knife plugin to generate an OpenSSH config file from a Chef search
# From Harvest. www.getharvest.com
#
# Source: https://github.com/harvesthq/knife-plugins
#
# See http://wiki.opscode.com/display/chef/Knife+Plugins
# See http://www.openbsd.org/cgi-bin/man.cgi?query=ssh_config&sektion=5
#
## Install
# Place in .chef/plugins/knife/sshgen.rb
@warwickp
warwickp / gist:905755
Created April 6, 2011 14:36
Unscientific benchmark of QPress and tar/gz using defaults
Source is a MySQL backup (xtrabackup) of 21 GiB
1: Tar/GZ
time tar -zcf 2011-04-05_20-48-27.tar.gz 2011-04-05_20-48-27
real 19m25.423s
user 18m46.210s
sys 0m23.309s
result: 5.7G (27% of original size)
http {
...
#local chef server
upstream chef_api_local {
server localhost:4000;
}
#local chef webui
upstream chef_webui_local {
certificates/
config/
config/client.rb.example
config/server.rb.example
config/rake.rb
config/solo.rb.example
cookbooks/
Rakefile
roles/
site-cookbooks/
#!/usr/bin/env ruby -rubygems
############################################################
# throttle the notifications we send
# get 3 arguments
# "EMAIL" "SUBJECT" "BODY"
############################################################
unless ARGV.length == 3
puts "usage: <> email subject body"
exit