Skip to content

Instantly share code, notes, and snippets.

@samvj
samvj / ec2_enc.rb
Created May 24, 2012 16:11 — forked from lordkev/ec2_enc.rb
Puppet EC2 Security Group ENC
#!/usr/bin/ruby
##
# Classifies a puppet node based on its EC2 security group.
# Requires the AWS gem.
# Also requires a node_groups.yml file which specifies security groups
# and the classes/params that should be applied, in the following
# format (additionally keyed by security group name).
# http://docs.puppetlabs.com/guides/external_nodes.html
#
@samvj
samvj / init.pl
Created March 21, 2012 23:20
>30 years in domains
#!/usr/bin/perl
# mirrored from: http://ipod.com/init
# version 1.1
# if the host+path are in matrix then the redirect is to a single location
# if just the host is in matrix then the redirect is to host+the request uri
# nwk-productred 17.149.160.28&nbsp&amp&nbsp17.172.224.28
#
# to distibute this file us /usr/local/scr/distfilex