Skip to content

Instantly share code, notes, and snippets.


Sean OMeara someara

View GitHub Profile
someara / rhel5.ks
Created Dec 3, 2021 — forked from jbarber/rhel5.ks
RHEL5 kickstart example
View rhel5.ks
# Example Kickstart config file for RHEL5, change $VARIABLES to suitable values
# for your site
# Usage from linux kernel boot prompt:
# linux ks=http://$SERVER_ADDR/ks/rhel5-example.ks ip=$IPADDR netmask=$NETMASK gateway=$GATEWAY [nokill] [keymap=pt-latin1] [noipv6] [debug]
# More boot options at
# Options for this section can be found at
View gist:7bc06ff4eac767c9a71d0cac10926f9c
set -euo pipefail
# This script JSON formatted stdin and produces as JSON formatted stdout
# Sean OMeara <>
export PATH=$PATH:$1/bin
function error_exit() {
View gist:673693
bash -c '
echo <%= @config[:chef_node_name] %> > /tmp/chef_node_name
cat /tmp/chef_node_name | cut -d. -f1 > /tmp/proper_hostname
cat /tmp/chef_node_name | cut -d. -f2 | tr -d "\n" > /tmp/proper_dnsdomainname
echo -n "." >> /tmp/proper_dnsdomainname
cat /tmp/chef_node_name | cut -d. -f3 >> /tmp/proper_dnsdomainname
IPV4ADDR=`ip addr | grep eth0 | grep "inet " | cut -d " " -f 6 | cut -d \/ -f 1`

Keybase proof

I hereby claim:

  • I am someara on github.
  • I am someara ( on keybase.
  • I have a public key ASApYXGkBHJu7BQuP5jJ2sFdG12cug2Mo2zgx7kvu_39Xgo

To claim this, I am signing this object:

View gist:6179945
"languages": {
"ruby": {
"platform": "arm-linux-eabihf",
"version": "1.9.3",
"release_date": "2012-04-20",
"target": "arm-unknown-linux-gnueabihf",
"target_cpu": "arm",
"target_vendor": "unknown",
"target_os": "linux-eabihf",
View gist:5670945
# orchestration, yo
service "myservice" do
action node['cerkberk']['myservice']['status']
View gist:5266325
derpy:~$ gem search -r knife-vsphere
knife-vsphere (0.4.0)
someara / gist:5254661
Created Mar 27, 2013
crying sneak a river
View gist:5254661
# top secret chef docs
# docs
# hard to find download page
# complete list of artifacts and checksums
View gist:5248007
execute "do a thing" do
command "/path/to/binthing args"
not_if "test -f /tmp/foobar"
only_if "ps -ef | grep bob"