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
$ md5 boot2docker.iso | |
MD5 (boot2docker.iso) = e58b30593a2db15afc98f9a12293567d | |
$ md5 boot2docker | |
MD5 (boot2docker) = a73b6e6dec322393983ed34f640c31e5 | |
$ ./docker version | |
Client version: 0.8.0 | |
Go version (client): go1.2 | |
Git commit (client): cc3a8c8 |
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
define pushbot ( | |
$irc_channel, | |
$pubsub, | |
$log_url, | |
$rev_url, | |
$repo_url, | |
$site_name, | |
$order = 500, | |
$redis_port = '9388', | |
$redis_host = 'localhost' |
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 desktop_disk_encrypter ( | |
$dde_site_url, | |
$dde_db_name, | |
$dde_db_user, | |
$dde_db_pass, | |
$dde_secret, | |
$dde_binduser, | |
$dde_bindpass, | |
$gpg_key_ids, | |
$gpg_pubring, |
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 nodejs { | |
$packages = [ 'nodejs', 'nodejs-dev' ] | |
package { $packages: | |
ensure => present | |
} | |
exec { 'install_npm': | |
command => '/usr/bin/curl http://npmjs.org/install.sh | sh', | |
creates => '/usr/bin/npm' |
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
# USAGE: $variable = dilly(key, [order]) | |
# Where order is an optional array of the order of precedence of the YAML files. | |
# If array $dillyorder exists in the scope, that will work too. | |
# Passing 'nodefault' in the order array will prevent default.yaml from being considered. | |
module Puppet::Parser::Functions | |
require 'yaml' | |
require 'deep_merge' | |
newfunction(:dilly, :type => :rvalue) do |args| |
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/bash | |
if [ "x$1" == 'x' ]; then | |
echo "USAGE: $0 '<password>'" | |
exit 1 | |
fi | |
# Get an md5sum of the string for eventual extraction. | |
md5=$( echo $1 | md5sum ) | |
extract="${md5:2:8}" |
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
# Shamelessly based on https://gist.github.com/844735 | |
define apt::key ( | |
$keyserv, | |
$ensure = present | |
) { | |
$grep_for_key = "apt-key finger | grep fingerprint | awk '{print \$10 \$11 \$12 \$13}' | grep '${name}'" | |
case $ensure { | |
present: { |
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
$ cat sortme | |
1234 | |
abcd | |
ABCD | |
*** | |
::: | |
debian$ cat sortme | sort | |
::: |
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/bash | |
OLD=`rvm current` | |
source "$HOME/.rvm/scripts/rvm" | |
rvm use 1.8.7 | |
gem list --local | |
puppet parser validate $1 | |
puppet-lint $1 | |
rvm use $OLD |
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
Day job: System Administration (with Devops tendencies). | |
What is your language of choice: Ruby (recently), Perl (traditionally). | |
Open Source contributions: Lots of little scripts, plugins, and so forth over the years. | |
How do you use GitHub: Handy way to maintain and distribute my modest contributions to the OSS community. |