Skip to content

Instantly share code, notes, and snippets.

View stefanandres's full-sized avatar

Stefan Andres stefanandres

  • Anaconda, Inc
  • Berlin
  • 08:38 (UTC +01:00)
View GitHub Profile
@stefanandres
stefanandres / automations.yaml
Created November 17, 2023 11:40
home-assistant trash
- id: abfall_notify
alias: Abfall Benachrichtigung
description: ''
trigger:
- platform: time
at: '19:30:00'
condition:
- condition: state
entity_id: sensor.abfall_notify
state: '1'
automations:
- alias: Waschmaschine arbeitet
id: automation_washing_machine_arbeitet
description: >-
Wenn der Stecker über 5 Watt verbraucht, wird der Zustand des Sensors
"Waschmaschine" auf "arbeitet" gesetzt.
trigger:
- platform: numeric_state
entity_id: sensor.waschmaschine_current_consumption
above: '5'
@stefanandres
stefanandres / docker-compose.yaml
Last active July 24, 2022 14:18
vaultwarden traefik 2.8 digital ocean dns validation
version: '3'
services:
vaultwarden:
image: vaultwarden/server:1.25.1-arm32v6
#image: vaultwarden/server:1.24.0-arm32v6
container_name: vaultwarden
restart: always
network_mode: host
environment:
@stefanandres
stefanandres / helmfile.yaml
Created January 20, 2022 15:01
kubernetes events to loki
helmDefaults:
wait: true
timeout: 1200
createNamespace: false
repositories:
- name: bitnami
url: https://charts.bitnami.com/bitnami
releases:
prometheus-prom-prometheus-operator-prometheus-7bd5df9d99prometheus-prom-prometheus-operator-prometheus-1monitoring/prometheusprometheus-prom-prometheus-operator-prometheus-1monitoringprom-prometheus-operator-prometheusprometheus
Limit:10000 (166 returned)
2020-04-06 11:00:08
level=info ts=2020-04-06T09:00:08.635Z caller=head.go:738 component=tsdb msg="WAL checkpoint complete" first=2543 last=2544 duration=2.254821551s
2020-04-06 11:00:06
level=info ts=2020-04-06T09:00:06.380Z caller=head.go:668 component=tsdb msg="head GC completed" duration=812.84523ms
2020-04-06 10:10:38
level=info ts=2020-04-06T08:10:38.475Z caller=head.go:668 component=tsdb msg="head GC completed" duration=549.626993ms
2020-04-06 10:10:33
level=info ts=2020-04-06T08:10:33.122Z caller=head.go:738 component=tsdb msg="WAL checkpoint complete" first=2541 last=2542 duration=1.602410821s
root@mail:~/zcs-patch-8.7.11_GA_3789# ./installPatch.sh
Current Version: 8.7.11_GA_1854
Found Patch for 8.7.11_GA called 8.7.11_P10
Deploying patch for 8.7.11_GA
Updating files for package zimbra-core
/opt/zimbra/lib/jars/zimbrastore.jar... copied.
/opt/zimbra/lib/jars/jackson-xc-1.9.13.jar... copied.
/opt/zimbra/lib/jars/jackson-core-asl-1.9.13.jar... copied.
/opt/zimbra/lib/jars/zimbracommon.jar... copied.
/opt/zimbra/lib/jars/zimbrasoap.jar... copied.
root@mail:/etc/logrotate.d# cat zimbra
/var/log/zimbra.log {
daily
missingok
notifempty
create 0644 zimbra zimbra
postrotate
kill -HUP `cat /var/run/syslog*.pid 2> /dev/null` 2> /dev/null || true
su - zimbra -c "/opt/zimbra/bin/zmconfigdctl restart" > /dev/null 2>&1 || true
endscript
(python37) sandres@sandres ~/k8s/rocketchat/external-dns(master) $ cat all.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: external-dns
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: external-dns
(python37) sandres@sandres ~ $ diff -u /tmp/centos /tmp/coreos |grep -v docker0|grep -v cali
--- /tmp/centos 2019-01-14 14:41:22.000000000 +0100
+++ /tmp/coreos 2019-01-14 14:39:58.000000000 +0100
@@ -1,33 +1,23 @@
abi.vsyscall32 = 1
-crypto.fips_enabled = 0
debug.exception-trace = 1
debug.kprobes-optimization = 1
-debug.panic_on_rcu_stall = 0
dev.hpet.max-user-freq = 64
apiVersion: v1
data:
start-backup: |
set -e
cd /backup &&
rm -rf dump
mongodump --host "$MONGO_HOST" &&
tar czpf dump-$(date +%F-%H-%M).tar.gz dump &&
rm -rf dump
kind: ConfigMap