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: "2" | |
services: | |
prometheus: | |
image: prom/prometheus | |
container_name: prometheus | |
privileged: True | |
volumes: | |
- /mnt/tank/appdata/prometheus:/etc/prometheus | |
ports: |
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
# Telegraf Configuration | |
# | |
# Telegraf is entirely plugin driven. All metrics are gathered from the | |
# declared inputs, and sent to the declared outputs. | |
# | |
# Plugins must be declared in here to be active. | |
# To deactivate a plugin, comment out the name and any variables. | |
# | |
# Use 'telegraf -config telegraf.conf -test' to see what metrics a config | |
# file would generate. |
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
General | |
Unique ID : 162663708653422819879569831683315961704 (0x7A5FE407477584418E6F0BBAC20B8F68) | |
Complete name : Back to the Future (1985) Remux-1080p.mkv | |
Format : Matroska | |
Format version : Version 4 | |
File size : 34.8 GiB | |
Duration : 1 h 56 min | |
Overall bit rate mode : Variable | |
Overall bit rate : 43.0 Mb/s | |
Encoded date : UTC 2014-02-20 16:38:36 |
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
$ cat /etc/dnsmasq.conf | |
no-resolv | |
server=/eu-west-1.compute.internal/10.0.24.2 | |
server=/example.local/10.160.16.10 | |
server=10.0.24.2 | |
server=/example.local/10.10.16.10 | |
server=/140.10.in-addr.arpa/10.0.24.2 | |
server=/82.10.in-addr.arpa/10.0.24.2 | |
address=/.apps-build.euw1.aws.example.local/10.0.25.100 | |
address=/master-ocp-build.euw1.aws.example.local/10.0.25.100 |
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
esphome: | |
name: sonoffsv_garage_car | |
platform: ESP8266 | |
board: esp01_1m | |
wifi: | |
ssid: "123" | |
password: "123" | |
# Enable fallback hotspot (captive portal) in case wifi connection fails |
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 | |
rm -rf bootstrap-files/ | |
sleep 1 | |
mkdir -p bootstrap-files | |
cp install-config.yaml bootstrap-files/ | |
cp append-bootstrap.ign bootstrap-files/ | |
cd bootstrap-files |
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
{ | |
"annotations": { | |
"list": [] | |
}, | |
"editable": true, | |
"gnetId": null, | |
"graphTooltip": 0, | |
"hideControls": false, | |
"id": 1, | |
"links": [], |
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 | |
export ETCD_ENDPOINTS="https://ocp311-m1.ktz.lan:2379,https://ocp311-m2.ktz.lan:2379,https://ocp311-m3.ktz.lan:2379" | |
# master backup | |
mkdir git && cd git | |
git clone https://github.com/openshift/openshift-ansible-contrib.git | |
touch /etc/pki/ca-trust/source/anchors/test # github issue opened to avoid this step | |
./openshift-ansible-contrib/reference-architecture/day2ops/scripts/backup_master_node.sh |
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 | |
# call as replace.sh filename | |
file="$1" | |
sed -i 's/+ \*\*/ - { date: "/g' $file | |
sed -i 's/:\*\* /:", desc: "/g' $file | |
sed -i '/ - { date:/ s/$/" }/' $file |
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 ruby | |
# USAGE | |
# See : https://github.com/thuehlinger/daemons | |
# | |
# ruby nest_poller_control.rb run (foreground) | |
# ruby nest_poller_control.rb start | |
# ruby nest_poller_control.rb stop | |
# ruby nest_poller_control.rb status |