Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dlutzy on github.
  • I am dlutzy (https://keybase.io/dlutzy) on keybase.
  • I have a public key whose fingerprint is 7BB5 E7B4 DF8A 0DE8 822B 135E 5BD2 F33C 30A9 535D

To claim this, I am signing this object:

@dlutzy
dlutzy / gist:3484567
Created August 27, 2012 00:11
Test Driven Sysadmin 2
#!/bin/bash
if which links > /dev/null
then
echo "Test passed. links is already installed"
else
echo "Test failed. links is not installed, installing now..."
echo "apt-get -y install links"
apt-get -y install links
@dlutzy
dlutzy / links3.rb
Created August 27, 2012 00:47
Test Driven Sysadmin 6
dep 'links.bin' do
met? {
which "links"
}
installs "links"
end
@dlutzy
dlutzy / gist:3484521
Created August 27, 2012 00:04
Test Driven Sysadmin 1
apt-get -y install links
@dlutzy
dlutzy / gist:3484576
Created August 27, 2012 00:13
Test Driven Sysadmin 3
#!/bin/bash
function installinator()
{
if which apt-get > /dev/null
then
echo "I'm a debian based system probably ubuntu"
INSTALLER="apt-get"
fi
if which yum > /dev/null
@dlutzy
dlutzy / gist:3484619
Created August 27, 2012 00:21
Babushka Dependancy Template
dep 'dependancy name' do
met? {
}
meet {
}
end
@dlutzy
dlutzy / links4.rb
Created August 27, 2012 00:48
Test Driven Sysadmin 7
dep 'links.bin' do
installs "links"
end
@dlutzy
dlutzy / links1.rb
Created August 27, 2012 00:41
Test Driven Sysadmin 4
dep 'links is installed' do
met? {
which "links"
}
meet {
log "Test failed. links is not installed, installing now..."
shell "apt-get -y install links"
}
@dlutzy
dlutzy / links2.rb
Created August 27, 2012 00:44
Test Driven Sysadmin 5
dep 'links.bin' do
met? {
which "links"
}
installs {
via :apt, "links"
}
end
@dlutzy
dlutzy / links5.rb
Created August 27, 2012 00:49
Test Driven Sysadmin 7
dep 'links.bin'