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
//@module
exports.pins = {
blinkm: {type: "I2C", address: 0x09}
}
exports.configure = function() {
this.blinkm.init();
}
//@module
exports.pins = {
blinkm: {type: "I2C", address: 0x09, voltage: 5.0}
}
exports.configure = function() {
this.blinkm.init();
}
@scarolan
scarolan / fortune.rb
Last active May 24, 2016 15:42
Chef Essentials Bonus Exercises
package 'fortune' do
action :install
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 / 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 / plan.sh
Last active October 9, 2016 20:23 — forked from nathenharvey/plan.sh
pkg_origin=firstnamelastname
pkg_name=mytutorialapp
pkg_version=0.2.0
pkg_maintainer="First Last <[email protected]>"
pkg_license=()
pkg_source=nosuchfile.tar.gz
pkg_upstream_url=https://github.com/scarolan/habitat-example-plans
pkg_deps=(core/node)
pkg_expose=(8080)
---
driver:
name: ec2
aws_ssh_key_id: gramsay_bot
region: us-east-1
security_group_ids: sg-e5bafc83
subnet_id: subnet-977469ce
availability_zone: us-east-1a
associate_public_ip: true
instance_type: t2.micro
---
driver:
name: ec2
aws_ssh_key_id: gramsay_bot
region: us-east-1
security_group_ids: sg-e5bafc83
subnet_id: subnet-977469ce
availability_zone: us-east-1a
associate_public_ip: true
instance_type: t2.micro
@scarolan
scarolan / config.json
Created March 28, 2017 14:14
No-op .delivery/config.json
{
"version": "2",
"build_cookbook": {
"name": "build_cookbook",
"path": ".delivery/build_cookbook"
},
"skip_phases": [
"unit","lint","syntax","quality","security","publish","provision","deploy","smoke","functional"
],
"dependencies": []
---
driver:
name: ec2
require_chef_omnibus: true
region: us-west-2
security_group_ids: <REPLACE>
subnet_id: <REPLACE>
associate_public_ip: true
instance_type: c3.large
aws_ssh_key_id: chef_demo