Skip to content

Instantly share code, notes, and snippets.

View jeffmccune's full-sized avatar

Jeff McCune jeffmccune

View GitHub Profile
64 bytes from 10.17.110.51: icmp_seq=27 ttl=252 time=1.172 ms
64 bytes from 10.17.110.51: icmp_seq=28 ttl=252 time=1.355 ms
64 bytes from 10.17.110.51: icmp_seq=29 ttl=252 time=1.200 ms
64 bytes from 10.17.110.51: icmp_seq=30 ttl=252 time=1.051 ms
64 bytes from 10.17.110.51: icmp_seq=31 ttl=252 time=1.209 ms
64 bytes from 10.17.110.51: icmp_seq=32 ttl=252 time=1.454 ms
64 bytes from 10.17.110.51: icmp_seq=33 ttl=252 time=0.955 ms
64 bytes from 10.17.110.51: icmp_seq=34 ttl=252 time=1.223 ms
Request timeout for icmp_seq 35
Request timeout for icmp_seq 36
@jeffmccune
jeffmccune / setup.sh
Last active December 22, 2015 15:08
#! /bin/bash
#
# curl --cacert /etc/ssl/certs/ca-bundle.crt -Lo- https://goo.gl/2ASdos | bash
#
# Cloud Instance Setup script
# Assumes CentOS 6 instance
set -e
set -u
set -x
class site::motd($template = 'site/motd') {
notify { 'motd': message => "template is $template" }
}
class goal {
notify { "site::motd::template":
message => "::site::motd::template is ${::site::motd::template} (should be ${::node_template})"
}
}
@jeffmccune
jeffmccune / ops_puppet.md
Last active December 22, 2015 07:58
Ops Puppet Ruby

Missing Psych? Is there an updated Package available?

macosx:~ localadmin$ export PATH=/opt/operations/bin:$PATH
macosx:~ localadmin$ which gem
/opt/operations/bin/gem
macosx:~ localadmin$ gem list
/opt/operations/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
#! /bin/bash
## NOTE:
## This script requires the follwing in /etc/hosts:
## 127.0.0.2 puppet master1.example.org
# This will fail with a stock puppet 3.1.1, but will succeed if all of the
# certificate subjects contain only the "CN" portion, and no O, OU, or
# emailAddress.
@jeffmccune
jeffmccune / openssl.so.txt
Created February 13, 2013 19:42
objdump -p ruby/lib/ruby/1.8/i386-mingw32/openssl.so
openssl.so: file format pei-i386
Characteristics 0x230e
executable
line numbers stripped
symbols stripped
32 bit words
debugging information removed
DLL
Using Config config/jeff.yaml
Begin setup/early/00-vmrun.rb
Revert VMs
Skip: vmrun option not specified
setup/early/00-vmrun.rb skipped in 0.00 seconds
Begin setup/early/01-gen-answer-file.rb
Skip: Skipping PE 2.x answers file generation for non PE tests
setup/early/01-gen-answer-file.rb skipped in 0.00 seconds
Begin setup/early/01-pe12x-gen-answer-file.rb
#! /bin/bash
#
sudo yum -y install git tmux zsh ruby-devel ruby-irb ruby-rdoc rubygems make gcc
cd ~
test -d .vim || git clone [email protected]:jeffmccune/jeff_vim.git .vim
test -e .vimrc || ln -s .vim/vimrc.vim .vimrc
test -d .vimswp || mkdir .vimswp
test -d customization || (git clone [email protected]:git/customization.git; cd customization; git submodule init; git submodule update)
test -e .zshrc || ./customization/install
sudo chsh $USER -s /bin/zsh
#! /bin/bash
#
sudo yum -y install git tmux zsh ruby-devel ruby-irb ruby-rdoc rubygems make gcc
cd ~
test -d .vim || git clone [email protected]:jeffmccune/jeff_vim.git .vim
test -e .vimrc || ln -s .vim/vimrc.vim .vimrc
test -d .vimswp || mkdir .vimswp
test -d customization || (git clone [email protected]:git/customization.git; cd customization; git submodule init; git submodule update)
test -e .zshrc || ./customization/install
sudo chsh $USER -s /bin/zsh