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
#!/usr/bin/env ruby | |
# Implement CIS Benchmarks for AWS Section 3.x | |
# Details on each benchmark from https://benchmarks.cisecurity.org/downloads/show-single/?file=awsfoundations.100 | |
# name should be in camelcase since we'll use it for filter and alarm names | |
filters = [ | |
{ | |
benchmark: '3.1', |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Creates resources for brand new aws account", | |
"Parameters": { | |
"AccountName": { | |
"Description": "Name for AWS account", | |
"Type": "String" | |
}, | |
"AccountId": { | |
"Description": "Numeric AWS Account ID of new account", |
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
## Skeleton config file for RetroArch | |
# Save all save files (*.srm) to this directory. This includes related files like .bsv, .rtc, .psrm, etc ... | |
# This will be overridden by explicit command line options. | |
# savefile_directory = | |
# Save all save states (*.state) to this directory. | |
# This will be overridden by explicit command line options. | |
# savestate_directory = |
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
#!/usr/bin/env ruby | |
# obtain api key from: http://openweathermap.org/API | |
require 'librato/metrics' | |
require 'open_weather' | |
FISHERS_CITY_ID = 4257494 | |
response = OpenWeather::Current.city_id(FISHERS_CITY_ID, 'APPID' => ENV['OPENWEATHER_APPID']) | |
outside_temp_k = response.parsed_response['main']['temp'] | |
outside_temp_f = (outside_temp_k - 273.15) * 9 / 5 + 32 |
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
#include <avr/pgmspace.h> | |
int A_pin = 2; // Data pin for rows selection A | |
int B_pin = 3; // Data pin for rows selection B | |
int C_pin = 4; // Data pin for rows selection C | |
int D_pin = 5; // Data pin for rows selection D | |
int G1_pin = 9; //6; //green leds for uppwer rows | |
int G2_pin = 10; //7; //green leds for lower rows |
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
#include <avr/pgmspace.h> | |
/* This is my attempt at re-writing the code at | |
* http://www.82smugglers.com/misc/_6432_text.pde | |
* to work with the 6416 display. | |
*/ | |
int A_pin = 2; // Data pin for rows selection A | |
int B_pin = 3; // Data pin for rows selection B | |
int C_pin = 4; // Data pin for rows selection C |
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
"InstanceRole": { | |
"Type": "AWS::IAM::Role", | |
"Properties": { | |
"AssumeRolePolicyDocument": { | |
"Statement": [ { | |
"Effect": "Allow", | |
"Principal": { | |
"Service": [ "ec2.amazonaws.com" ] | |
}, | |
"Action": [ "sts:AssumeRole" ] |
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
"AWS::CloudFormation::Init": { | |
"config": { | |
"files": { | |
"C:\\Bootstrap\\apps\\dropbox.exe": { | |
"source": "http://www.dropbox.com/download?plat=win" | |
}, | |
} | |
} | |
} |
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
#!/usr/bin/env ruby | |
require 'optparse' | |
require 'ostruct' | |
require 'aws-sdk' | |
require 'base64' | |
require 'openssl' | |
class Passworder | |
def initialize(args) | |
parse_opts(args) |