Skip to content

Instantly share code, notes, and snippets.

View mattray's full-sized avatar
🇦🇺
in Sydney

Matt Ray mattray

🇦🇺
in Sydney
View GitHub Profile
@mattray
mattray / example.yml
Created December 14, 2011 23:34 — forked from hh/example.yml
nodes:
- winrm windowswinrmhost:
- role[webserver],role[base]
- -x Administrator -P 'super_secret_password'
- ssh windowssshhost:
- role[foobar]
- -x 'Administrator' -P barpass -d windows-preinstalled
@mattray
mattray / gist:2938778
Created June 15, 2012 21:25 — forked from vindir/gist:2938775
fnichols chef-user cookbook attempt.
name "ourusers"
description "Add users"
default_attributes(
"users" => "vindy"
)
run_list(
"recipe[users::sysadmins]",
"recipe[sudo]"
@mattray
mattray / parse_metadata.rb
Created September 19, 2012 20:24 — forked from mlafeldt/README.md
Parse cookbook's metadata
#!/usr/bin/env ruby
require 'chef/cookbook/metadata'
metadata_file = ARGV.first || 'metadata.rb'
metadata = Chef::Cookbook::Metadata.new
metadata.from_file(metadata_file)
puts "#{metadata.name} #{metadata.version}"
# Keyboard and locale
d-i debian-installer/locale string en_US
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string us
# Network
d-i netcfg/choose_interface select eth0
d-i hw-detect/load_firmware boolean true
# Mirror
#!/usr/bin/env ruby
#
# Wrap thor-scmver to build metadata
#
require 'thor-scmversion'
module ThorSCMVersion
class Tasks < Thor
namespace "version"
require 'singleton'
require 'octokit'
class ReleaseNotesGenerator
include Singleton
def release_header?
release_match != nil
end
@mattray
mattray / criteria.txt
Last active September 11, 2015 17:12 — forked from gigamonkey/criteria.txt
Hiring criteria: looking for the ability to …
Write a program that does what it’s supposed to do
Write idiomatic code
Debug a program that you wrote
Debug a program someone else wrote
Debug the interaction between a system you wrote and one you didn’t
File a good bug report
Modify a program you didn’t write
Test a program you wrote
Test a program you didn’t write
Learn a new programming language