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
Concept for auto-processing: | |
given an inventory of crafting cards holding recipes (input and output) and a machine that can turn the input into the output for each one: | |
Loop over slots in the inventory | |
For current slot | |
get output of recipe | |
get # of items in a storage control module | |
test < some value | |
if > |
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
Error applying plan: | |
1 error(s) occurred: | |
* module.stack.module.ecs_cluster.aws_autoscaling_group.main: aws_autoscaling_group.main: diffs didn't match during apply. This is a bug with Terraform and should be reported as a GitHub Issue. | |
Please include the following information in your report: | |
Terraform Version: 0.10.4 | |
Resource ID: aws_autoscaling_group.main |
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
openssl s_client -showcerts -connect <host>:443 | |
CONNECTED(00000003) | |
depth=1 C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3 | |
verify error:num=20:unable to get local issuer certificate | |
verify return:0 | |
--- | |
Certificate chain | |
0 s:/CN=<host> | |
i:/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3 | |
-----BEGIN CERTIFICATE----- |
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/local/opt/openssl/bin/openssl s_client -showcerts -connect vault.inside.canvaspophq.com:443 -verify_hostname vault.inside.canvaspophq.com -servername vault.inside.canvaspophq.com -CApath /usr/local/etc/openssl/certs | |
CONNECTED(00000003) | |
depth=2 O = Digital Signature Trust Co., CN = DST Root CA X3 | |
verify return:1 | |
depth=1 C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3 | |
verify return:1 | |
depth=0 CN = vault.inside.canvaspophq.com | |
verify return:1 | |
--- | |
Certificate chain |
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" "ecs_service_role" { | |
name = "ecs-service-role-${var.name}" | |
assume_role_policy = <<EOT | |
{ | |
"Version": "2008-10-17", | |
"Statement": [ | |
{ | |
"Action": "sts:AssumeRole", | |
"Principal": { | |
"Service": [ |
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" "ecs_service_policy" { | |
name = "ecs-service-policy-${var.name}" | |
role = "${aws_iam_role.ecs_service_role.id}" | |
policy = <<EOF | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ |
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_ecs_service" "service" { | |
name = "${var.name}" | |
cluster = "${var.ecs_cluster_id}" | |
task_definition = "${aws_ecs_task_definition.task.arn}" | |
desired_count = "${var.desired_count}" | |
iam_role = "${aws_iam_role.ecs_service_role.arn}" | |
deployment_minimum_healthy_percent = "${var.deployment_minimum_healthy_percent}" | |
deployment_maximum_percent = "${var.deployment_maximum_percent}" |
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 styleMap = { | |
fill: function(obj) { | |
if (typeof obj == 'string' || Array.isArray(obj)) { | |
obj = { color: obj }; | |
} | |
return new ol.style.Fill(obj); | |
}, | |
stroke: function(obj) { | |
if (typeof obj == 'string' || Array.isArray(obj)) { | |
obj = { color: obj }; |
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
export async function test() { } |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |