This file contains 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
--- | |
driver: | |
name: vagrant | |
provisioner: | |
name: chef_zero | |
platforms: | |
- name: centos-6.5 |
This file contains 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
read () { | |
open "http://franklinwebber.com" | |
} | |
article () { | |
# change in to the directory where I keep my journal project | |
cd ~/journal | |
echo "Creating article '$@'" |
This file contains 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
# 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)) | |
{ |
Name | Workstation |
---|---|
Rebekah | ec2-52-3-218-73.compute-1.amazonaws.com |
Frank | ec2-52-0-134-92.compute-1.amazonaws.com |
This file contains 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
# | |
# Cookbook Name:: apache | |
# Recipe:: default | |
# | |
# Copyright 2013, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
package "httpd" do |
This file contains 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
default['email_handler']['from_address'] = "chef@localhost" | |
default['email_handler']['to_address'] = "chef@localhost" |
This file contains 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
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 |
This file contains 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
# attributes file | |
default["apache"]["sites"]["clowns"] = { "port" => 80, "nose" => "red" } | |
default["apache"]["sites"]["bears"] = { "port" => 81, "nose" => "black" } |
This file contains 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
<% if @port != 80 -%> | |
Listen <%= @port %> | |
<% end -%> | |
<VirtualHost *:<%= @port %>> | |
ServerAdmin webmaster@localhost | |
DocumentRoot <%= @document_root %> | |
<Directory /> | |
Options FollowSymLinks |