Skip to content

Instantly share code, notes, and snippets.

View scarolan's full-sized avatar
🤸‍♂️
In whatever position one is in...one must find balance. -BKS Iyengar

Sean Carolan scarolan

🤸‍♂️
In whatever position one is in...one must find balance. -BKS Iyengar
View GitHub Profile
@scarolan
scarolan / fish.rb
Created July 9, 2016 18:17
Installs Asciiquarium on CentOS
# "Fish are friends, not food." -Bruce the Shark
include_recipe "yum-epel"
package "perl-Curses"
remote_file "#{Chef::Config[:file_cache_path]}/Term-Animation-2.4.tar.gz" do
action :create
source 'http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/Term-Animation-2.4.tar.gz'
end
@scarolan
scarolan / default.rb
Last active June 21, 2016 12:08
Some sample inspec tests to get you started!
execute "sed -i '/requiretty/d' /etc/sudoers" do
action :run
end
package 'httpd' do
action :install
end
file '/var/www/html/index.html' do
action :create
@scarolan
scarolan / fortune.rb
Last active May 24, 2016 15:42
Chef Essentials Bonus Exercises
package 'fortune' do
action :install
end
//@module
exports.pins = {
blinkm: {type: "I2C", address: 0x09, voltage: 5.0}
}
exports.configure = function() {
this.blinkm.init();
}
//@module
exports.pins = {
blinkm: {type: "I2C", address: 0x09}
}
exports.configure = function() {
this.blinkm.init();
}
exports.pins = {
blinkm: {type: "I2C", address: 0x00, sda: 53, clock: 54}
};
exports.configure = function() {
this.blinkm.init();
}
exports.close = function() {
this.blinkm.init();
exports.pins = {
blinkm: { type: "I2C", address: 0x09, sda: 53, clock: 54 }
};
exports.configure = function () {
this.blinkm.init();
}
exports.close = function () {
this.blinkm.close();
variable "region" { }
provider "aws" {
region = "${var.region}"
}
resource "aws_instance" "example" {
ami = "ami-d05e75b8"
instance_type = "t2.micro"
}
@scarolan
scarolan / rake_setup_error.log
Created December 23, 2015 15:55
Rake setup errors with Chef Delivery
Recipe: delivery-cluster::_settings
* link[C:/Users/Administrator/delivery-cluster/.chef/../.chef/delivery-cluster-data] action create
================================================================================
Error executing action `create` on resource 'link[C:/Users/Administrator/delivery-cluster/.chef/../.chef/delivery-cluster-data]'
================================================================================
Chef::Exceptions::Win32APIError
-------------------------------
The filename, directory name, or volume label syntax is incorrect.
@scarolan
scarolan / default.rb
Last active December 21, 2015 22:32
AWS Chef Workshop Files
default['web']['width'] = '1280'
default['web']['height'] = '768'
default['web']['base'] = 'http://external.kongregate-games.com/gamez/0021/4044/live/'
default['web']['src'] = 'http://external.kongregate-games.com/gamez/0021/4044/live/embeddable_214044.swf'