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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::(your account number):root" | |
}, | |
"Action": "sts:AssumeRole", | |
"Condition": { |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": "sts:AssumeRole", | |
"Resource": [ | |
"arn:aws:iam::*:role/(role name)", | |
] |
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
# Master profile | |
[profile master] | |
aws_access_key_id = (access key id) | |
aws_secret_access_key = (secret access key) | |
region = eu-west-1 | |
# Slave profiles | |
[profile development] |
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
require 'net/ssh' | |
transport_session = Net::SSH::Transport::Session.new('ryans-server.com') | |
transport_session.send_message(transport_session.service_request("ssh-userauth")) | |
auth_session = Net::SSH::Authentication::Session.new(transport_session) | |
auth_session.expect_message(Net::SSH::Transport::Constants::SERVICE_ACCEPT) | |
transport_session.send_message(Net::SSH::Authentication::Methods::Publickey.new(transport_session).userauth_request(false, false, false)) | |
allowed_auth_methods = transport_session.next_message.instance_variable_get('@named_elements')[:authentications].split(',') | |
puts allowed_auth_methods.inspect |
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
# The game board layout, consisting of an array of Squares. | |
BOARD = [ | |
Square.new( | |
name: 'GO', | |
action: Proc.new { |game, owner, player, property| | |
Transaction.new(from: game.bank, to: player, reason: 'landing on go', amount: game.go_amount) | |
} | |
), | |
BasicProperty.new( |
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
In order to detect the Record punch-in and punch-out sequences: | |
Add an HUI control service (HUI-partial in Reaper) and assign it to your MIDI output. | |
Watch for the following Control change sequences on channel 1: | |
Record start (punch-in): | |
Pitch: 2C (dec 44), Velocity: 45 (dec 69) | |
Record stop (punch-out): | |
Pitch: 2C (dec 44), Velocity: 5 (dec 5) |