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
resource aws_iam_role_policy this { | |
name = var.name | |
role = aws_iam_role.this.name | |
policy = var.policy | |
} | |
resource aws_iam_role this { | |
name = var.name | |
assume_role_policy = <<EOF | |
{ |
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
Building in Docker Cloud's infrastructure... | |
Cloning into '.'... | |
Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts. | |
Switched to a new branch 'simplify-dockerfile' | |
Pulling cache layers for index.docker.io/morganchristiansson/aws-smtp-relay:simplify-dockerfile... | |
Done! | |
Executing pre_build hook... | |
=> Building the binary | |
Unable to find image 'maven:alpine' locally | |
alpine: Pulling from library/maven |
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
var table = document.getElementsByClassName('advanced_dns')[0]; | |
var rows = table.getElementsByTagName('tr'); | |
var i, len, row; | |
var hostname, type, priority, ttl, destination; | |
var output = ''; | |
output += '$TTL 600\n'; // start with default TTL | |
// skip header and last two rows (add new entry, delete all entries) | |
for (i = 1, len = rows.length - 2; i < len; i++) { |
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 'spreadsheet' | |
input_path = ARGV[0] or abort('Expecting .xls file as argument') | |
output_path = input_path.sub(/\.xls$/, '-out.xls') | |
book = Spreadsheet.open(input_path) | |
# This is a fix/workaround - modifying each sheet in the workbook. | |
# Without it, the output file doesn't open at all |
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 rackup | |
require 'forward' | |
run Rack::Forwarder.new('google.com') |
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
[alias] | |
unmerged = !vim -o $(git-unmerged-files) |