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
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
#/ Description: | |
#/ Run Terraform fmt on nomad file to format HCL, and update the file in place. | |
#/ | |
#/ Arguments: | |
#/ $1 the nomad flie | |
#/ --diff if set, then do not write the changes, but show the diff between current and cacnonical format |
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
# ---- BYTES | |
# HELP bytes_received The total number of bytes received. | |
# TYPE bytes_received counter | |
bytes_received{node="nodeName"} 8504294780 | |
# HELP bytes_sent The total number of bytes sent. | |
# TYPE bytes_sent counter | |
bytes_sent{node="nodeName"} 7981953590 | |
# ---- CLIENT |
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
# Potential resolvers: | |
# AWS VPC (should be the default): 169.254.169.253 | |
# AWS EC2 classic (goes out of VPC): 172.16.0.23 | |
# Google global DNS: 8.8.8.8 | |
# Quad9 DNS: 9.9.9.9 | |
# Cloudflare's 1⁴ : 1.1.1.1 / 1.0.0.1 | |
resolver 169.254.169.253; |
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
.PHONY: all info init refresh plan apply destroy fmt | |
# use `make plan` to do a dry-run. And same pattern for all other commands | |
ifndef stack | |
stack=terraform | |
endif | |
# Forcing AWS default region | |
export AWS_DEFAULT_REGION=us-east-1 |
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
#!/usr/bin/env bash | |
function ecr-add-tag() { | |
if (( $# < 3 )); then | |
echo "Wrong number of arguments. Usage: ecr-add-tag ECR_REPO_NAME TAG_TO_FIND TAG_TO_ADD [AWS_PROFILE]" | |
return | |
fi | |
local repo_name=$1 | |
local existing_tag=$2 | |
local new_tag=$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
/* Manning's livebooks */ | |
@import url(https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css); | |
code { | |
font-family: 'Fira Code'; | |
} | |
/* applies to URLs on the domain livebook.manning.com */ |
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
/* Medium */ | |
@import url(https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css); | |
.graf--pre, .markup--blockquote-code, .markup--li-code, .markup--p-code { | |
font-family: 'Fira Code'; | |
} | |
/* Applies to url matching the regexp .*\bmedium\b\.?[^/]*\/*.* This matches many medium subdomains. For custom domains, you have to expand this rule */ |
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
/* Stackoverflow */ | |
@import url(https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css); | |
code { | |
font-family: 'Fira Code'; | |
} | |
/* applies to URLs on the domain stackoverflow.com */ |
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
/* Bitbucket */ | |
@import url(https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css); | |
/* Bitbucket code and diffs */ | |
.refract-content-container .line-numbers, | |
.refract-content-container .source, | |
body.adg3 .wiki-content pre, | |
body.adg3 ak-editor-bitbucket .ProseMirror pre, | |
body.adg3 ak-editor-bitbucket .code, |
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
/* Gitlab */ | |
@import url(https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css); | |
.file-content.code pre code, | |
.wiki code, | |
.diff-file .diff-content table { | |
font-family: 'Fira Code'; | |
} |