Skip to content

Instantly share code, notes, and snippets.

View ironicbadger's full-sized avatar

Alex Kretzschmar ironicbadger

View GitHub Profile
@ironicbadger
ironicbadger / docker-compose.yaml
Created May 6, 2021 17:13
vmware_exporter compose snippet
---
version: "2"
services:
prometheus:
image: prom/prometheus
container_name: prometheus
privileged: True
volumes:
- /mnt/tank/appdata/prometheus:/etc/prometheus
ports:
@ironicbadger
ironicbadger / etc-telegraf-telegraf.conf
Last active March 12, 2021 00:09
grafana dashboard
# 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.
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
@ironicbadger
ironicbadger / dnsmasq.conf
Last active February 1, 2021 09:57
example dnsmasq config
$ 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
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
#!/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
{
"annotations": {
"list": []
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"hideControls": false,
"id": 1,
"links": [],
@ironicbadger
ironicbadger / ocp-backup.sh
Last active May 22, 2019 18:28
OCP 3 etcd and master backups
#!/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
@ironicbadger
ironicbadger / replace.sh
Created February 12, 2019 03:11
linuxserver readme changelog script
#!/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
#!/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