This file contains hidden or 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
| params = { | |
| task_definition_arn: "", | |
| task_count: 1 | |
| } | |
| XXX.new(<<~EOS).render | |
| ecs_parameters do | |
| task_definition_arn #{params[:task_definition_arn].inspect} | |
| task_count #{params[:task_count]} %% unless params[:task_count].nil? | |
| platform_version #{params[:platform_version]} %% unless params[:platform_version].nil? | |
| end |
This file contains hidden or 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
| 17/10/30 05:53:53 INFO Client: Application report for application_1509340182201_0001 (state: RUNNING) | |
| 17/10/30 05:53:53 DEBUG Client: client token: N/A diagnostics: N/A ApplicationMaster host: 10.0.0.158 ApplicationMaster RPC port: 0 queue: default start time: 1509341982360 final status: UNDEFINED tracking URL: http://ip-10-0-0-183.us-west-2.compute.internal:20888/proxy/application_1509340182201_0001/ user: root |
This file contains hidden or 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
| [toplevel] | |
| tokyo-stacks = opsworks describe-stacks --region ap-northeast-1 | |
| tokyo-layers = | |
| !f() { | |
| for stack_id in $(aws opsworks describe-stacks --region ap-northeast-1 --query "Stacks[].StackId" --output text) | |
| do | |
| aws opsworks describe-layers --region ap-northeast-1 --stack-id ${stack_id} | |
| done | |
| }; f |
This file contains hidden or 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_vpc" "loadtest" { | |
| cidr_block = "10.200.0.0/16" | |
| enable_dns_support = true | |
| enable_dns_hostnames = true | |
| tags { | |
| Name = "load-test" | |
| } | |
| } | |
| resource "aws_subnet" "public-loadtest-a" { |
This file contains hidden or 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 'spec_helper' | |
| describe package('ntp') do | |
| it { should be_installed.with_version('4.2.6p5-30.24.amzn1') } | |
| end | |
| # describe service('ntpd') do | |
| # it { should be_enabled } | |
| # it { should be_running } | |
| # end |
This file contains hidden or 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
| { | |
| "handlers": { | |
| "hipchat": { | |
| "type": "pipe", | |
| "command": "/etc/sensu/handlers/hipchat.rb" | |
| }, | |
| "grafana-image": { | |
| "type": "pipe", | |
| "command": "/etc/sensu/handlers/grafana-image.rb" | |
| } |
This file contains hidden or 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
| # -*-Shell-script-*- | |
| # | |
| # functions This file contains functions to be used by most or all | |
| # shell scripts in the /etc/init.d directory. | |
| # | |
| TEXTDOMAIN=initscripts | |
| # Make sure umask is sane | |
| umask 022 |
This file contains hidden or 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
| hello: | |
| method: GET | |
| patterns: | |
| - request: | |
| params: | |
| name: "Tom" | |
| response: | |
| body: "Hello, Tom!" | |
| - request: | |
| params: |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "errors" | |
| ) | |
| func hoge() (string, error) { | |
| return "hello", errors.New("hello err") | |
| } |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func countHit(a string, b string) (hits int) { | |
| for i := 0; i < 10; i++ { | |
| if a[i] == b[i] { | |
| hits ++ |
NewerOlder