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
{ | |
"configs": [ | |
{ | |
"@type": "type.googleapis.com/envoy.admin.v3.BootstrapConfigDump", | |
"bootstrap": { | |
"node": { | |
"id": "hello-world-sidecar-proxy", | |
"cluster": "hello-world", | |
"metadata": { | |
"namespace": "default", |
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
echo "{}" | jq '{abc: 123}' | |
# returns: | |
# { | |
# "abc": 123 | |
# } |
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
#!/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 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 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 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
# HELP testvalue A test value | |
# Type testvalue gauge | |
testvalue 5 |
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
Pine64 | |
EXP PINS | |
6 - Black (GND) | |
7 - White (RX) | |
8 - Green (TX) | |
Pi model B | |
2 - Red (Vcc) optional | |
6 - Black (GND) | |
8 - White (RX) |
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
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
chroot /var/lib/haproxy | |
stats socket /run/haproxy/admin.sock mode 660 level admin | |
stats timeout 30s | |
user haproxy | |
group haproxy | |
daemon |
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
Harbor Breeze | |
FAN LOW: 0111110001000 | |
FAN MED: 0111110010000 | |
FAN HGH: 0111110100000 | |
FAN OFF: 0111110000010 | |
LIGHT1: 0111110000001 | |
LIGHT2: 0111110000000 |
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
// simple script to send RF code out to transmitter | |
// https://github.com/alkalinecoffee/echo_fireplace | |
#include <RCSwitch.h> | |
RCSwitch mySwitch = RCSwitch(); | |
const int ledPin = 16; | |
const int transmitPin = 12; // D6 | |
const int pulseLength = 430; |
NewerOlder