Skip to content

Instantly share code, notes, and snippets.

View burtlo's full-sized avatar

Lynn Frank burtlo

View GitHub Profile
@burtlo
burtlo / gist:488e950f5a3a7645b227
Created October 10, 2015 00:28
Test Kitchen with multiple nodes
---
driver:
name: vagrant
provisioner:
name: chef_zero
platforms:
- name: centos-6.5
@burtlo
burtlo / .zshrc
Last active October 5, 2015 00:42
This is a shortcut to change into my journal directory, create a new article, and then immediately start editing it.
read () {
open "http://franklinwebber.com"
}
article () {
# change in to the directory where I keep my journal project
cd ~/journal
echo "Creating article '$@'"
@burtlo
burtlo / winrm.ps1
Created September 15, 2015 14:07
Possible aid in working around a winrm not allowing a connection.
# Get the ID and security principal of the current user account
$myWindowsID=[System.Security.Principal.WindowsIdentity]::GetCurrent()
$myWindowsPrincipal=new-object System.Security.Principal.WindowsPrincipal($myWindowsID)
# Get the security principal for the Administrator role
$adminRole=[System.Security.Principal.WindowsBuiltInRole]::Administrator
# Check to see if we are currently running "as Administrator"
if ($myWindowsPrincipal.IsInRole($adminRole))
{
@burtlo
burtlo / 00_attendees.md
Last active August 26, 2015 16:28
Chef Fundamentals
Name Workstation
Rebekah ec2-52-3-218-73.compute-1.amazonaws.com
Frank ec2-52-0-134-92.compute-1.amazonaws.com
#
# Cookbook Name:: apache
# Recipe:: default
#
# Copyright 2013, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
package "httpd" do
default['email_handler']['from_address'] = "chef@localhost"
default['email_handler']['to_address'] = "chef@localhost"
@burtlo
burtlo / gist:6968b54752a1401207b8
Last active August 29, 2015 14:24
Boston Intermediate Addresses
Jon - ec2-52-3-74-78.compute-1.amazonaws.com
John - ec2-52-3-75-5.compute-1.amazonaws.com
Matt - ec2-52-3-74-94.compute-1.amazonaws.com
Ernest - ec2-52-3-74-83.compute-1.amazonaws.com
Michael - ec2-52-3-74-207.compute-1.amazonaws.com
Amit - ec2-52-3-75-3.compute-1.amazonaws.com
Leo - ec2-52-3-75-47.compute-1.amazonaws.com
Slava - ec2-52-3-75-126.compute-1.amazonaws.com
William - ec2-52-3-74-206.compute-1.amazonaws.com
Frank - ec2-52-3-24-155.compute-1.amazonaws.com
@burtlo
burtlo / attributes--default.rb
Last active August 29, 2015 14:24
SuSE Apache Cookbook Redux
# attributes file
default["apache"]["sites"]["clowns"] = { "port" => 80, "nose" => "red" }
default["apache"]["sites"]["bears"] = { "port" => 81, "nose" => "black" }
@burtlo
burtlo / custom.erb
Last active August 29, 2015 14:24 — forked from elon01/custom.erb
<% if @port != 80 -%>
Listen <%= @port %>
<% end -%>
<VirtualHost *:<%= @port %>>
ServerAdmin webmaster@localhost
DocumentRoot <%= @document_root %>
<Directory />
Options FollowSymLinks