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 | |
# Recursively copies keys from KEYS_TO_COPY and places them under TO_DIR directory, ie | |
# /alertmanager => /services/alertmanager | |
CONSUL_HOST=http://consul.example.com:443 | |
KEYS_TO_COPY=$(cat <<-END | |
alertmanager | |
consul |
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
ACTIVE 2 192.168.1.233 3018483230 |
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/sh | |
# wget -qO- http://mywebsite.com/myscript.txt | bash -s phone-number username64 password64 | |
to=$1 | |
username64=$2 | |
password64=$3 | |
attempts=2 | |
ip=192.168.1.234 |
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
echo "{}" | jq '{abc: 123}' | |
# returns: | |
# { | |
# "abc": 123 | |
# } |
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
{ | |
"configs": [ | |
{ | |
"@type": "type.googleapis.com/envoy.admin.v3.BootstrapConfigDump", | |
"bootstrap": { | |
"node": { | |
"id": "hello-world-sidecar-proxy", | |
"cluster": "hello-world", | |
"metadata": { | |
"namespace": "default", |
OlderNewer