Skip to content

Instantly share code, notes, and snippets.

View thejandroman's full-sized avatar

Alejandro Figueroa thejandroman

View GitHub Profile
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Last tested & updated 10/13/2011
####################################
cd
# Install dependencies
@thejandroman
thejandroman / serve.rb
Last active August 29, 2015 13:56 — forked from mikedemers/serve.rb
#!/usr/bin/env ruby
require 'webrick'
include WEBrick
# add custom MIME types
#HTTPUtils::DefaultMimeTypes.store('swf', 'application/x-shockwave-flash')
port = 8081
path = File.expand_path((ARGV[0].nil?) ? File.dirname(__FILE__) : ARGV[0])
{
"Statement": [
{
"Sid": "PackerSecurityGroupAccess",
"Action": [
"ec2:CreateSecurityGroup",
"ec2:DeleteSecurityGroup",
"ec2:DescribeSecurityGroups",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:RevokeSecurityGroupIngress"