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 main() { | |
| fmt.Println("Nothing Implemented") | |
| } |
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" | |
| "regexp" | |
| "io/ioutil" | |
| "net/http" | |
| "net/url" | |
| "strings" | |
| ) |
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
| AWSTemplateFormatVersion: 2010-09-09 | |
| Description: |- | |
| ECS Cluster test | |
| Parameters: | |
| VpcName: | |
| Type: String | |
| Default: dns_support_only | |
| ClusterName: | |
| Type: String | |
| Default: dns_support_only |
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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Resource": [ | |
| "arn:aws:logs:ap-northeast-1:022683276012:log-group:/aws/codebuild/eb_docker", | |
| "arn:aws:logs:ap-northeast-1:022683276012:log-group:/aws/codebuild/eb_docker:*" | |
| ], | |
| "Action": [ |
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
| # login to docker host os (Docker for Mac) | |
| screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty | |
| # get host ip from guest os | |
| ip route | awk 'NR==1 {print $3}' |
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
| #!/bin/bash | |
| REPOSITORY=[[[[[ecr_registrory_name]]]]] | |
| IMAGE=$REPOSITORY:latest | |
| AWS_REGION=[[[[[your_region]]]]] | |
| # docker login | |
| aws ecr get-login --region $AWS_REGION | |
| # docker build |
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
| # 最初のbashは適宜zshと置き換えてください | |
| bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) | |
| source $HOME/.gvm/scripts/gvm | |
| gvm install go1.4.3 | |
| gvm use go1.4.3 | |
| export GOROOT_BOOTSTRAP=$GOROOT # ここまではうまくいく | |
| gvm install go1.8 # 死 |
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
| uri = 'http://some_domain/path/to/page?param1=val1¶ms2=val2¶m3=val3' | |
| uri | |
| .split('?') | |
| .last | |
| .split(/[\&=]/) | |
| .each_with_index | |
| .select { |_, i| i%2 == 1 } | |
| .map { |arr| arr[0] } | |
| # メソッドチェーンだからここにendがない |