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 bash | |
set -euo pipefail | |
page=1 | |
repo_list=() | |
while true ; do | |
output=$(hub api -XGET -F type=all -F page=$page -F per_page=100 /user/repos | jq -r '.[].full_name') | |
if [[ -n $output ]]; then | |
readarray -t chunk <<<"$output" |
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 bash | |
set -euo pipefail | |
main() { | |
parse_cmdline "$@" | |
} | |
# parse the command line | |
parse_cmdline() { |
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
$ git status | |
On branch master | |
Your branch is up to date with 'origin/master'. | |
nothing to commit, working tree clean | |
17:31 $ git diff-files | |
17:32 $ git diff | |
17:32 $ git diff-files | |
17:32 $ touch seed/main.tf |
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
{ | |
"variable": { | |
"cloud": { | |
"description": "The cloud for this service" | |
}, | |
"cluster": { | |
"default": "default", | |
"description": "The cluster name to use for this service" | |
}, | |
"cost_center": { |
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
for repo in ${list_of_repos[*]} ; do | |
if [[ -d $repo ]]; then | |
( | |
cd "$repo" | |
git checkout master | |
git pull | |
) | |
else | |
git clone "git@github.com:org/$repo.git" | |
fi |
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
[terragrunt] 2018/06/29 22:45:27 Running command: terraform state show terraform_remote_state.vpc | |
id = 2018-06-29 20:38:21.841932892 +0000 UTC | |
backend = s3 | |
cidr_block = 172.18.0.0/16 | |
config.% = 3 | |
config.bucket = acme-terraform-state-global | |
config.key = aws/aws/us-east-1/vpc/terraform.tfstate | |
config.region = us-east-1 | |
environment = default | |
name = acme.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
{ | |
"version": 3, | |
"terraform_version": "0.11.7", | |
"serial": 14, | |
"lineage": "87dbf850-b517-fce3-1f34-d270ee9153d7", | |
"modules": [ | |
{ | |
"path": [ | |
"root" | |
], |
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
module "security_groups" { | |
source = "./modules/security_groups" | |
db_port = "${var.db_port}" | |
identifier = "${local.identifier}" | |
vpc_id = "${var.vpc_id}" | |
} |
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
instances: | |
- url: http://localhost:8500 | |
new_leader_checks: true | |
catalog_checks: true | |
service_whitelist: [] | |
# Nothing to configure here | |
init_config: |
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
import click | |
import mps.aws | |
import mps.config | |
from mps.exceptions import NoCredentialsException | |
# create module-specific logger | |
logger = logging.getLogger(__name__) |
NewerOlder