Skip to content

Instantly share code, notes, and snippets.

View curzon01's full-sized avatar

Norbert Richter curzon01

View GitHub Profile
@curzon01
curzon01 / fritzbox-cert-update.sh
Created November 26, 2021 08:45 — forked from wikrie/fritzbox-cert-update.sh
Fritzbox Fritz!Box AVM SSL Letsencrypt automatically update
#!/bin/bash
## this little Gist is for Copy the Letsencrypt Cert from an Linux machine (e.g. Raspberry PI or Synology NAS)
## to the router (Fritzbox).
## It is usefull to be able to speak to the Router over DDNS without any Cert issue in the Browser.
## thanks to https://gist.github.com/mahowi for the perfect Idea
## put it in /etc/letsencrypt/renewal-hooks/post so it gets run after every renewal.
## since Fritz OS 7.25 it is needed to select a Username, from a security point of view
## it is always a good idea to have a non default user name. And as normaly a Fritz Box
## is connected to the Internet, the prefered method should be WITH Username.
@curzon01
curzon01 / gist:6981775312b9a2bd408d763c4fb9db44
Created August 9, 2020 12:35
Tasmota Rule to control roof window & shutter with optional rain sensor
# ======================================================================
# Tasmota Roof window + shutter (needs Tasmota >= v8.4 with Shutter)
# ======================================================================
# Uses 4 relais for two motors (1. motor is window, 2. motor is shutter)
# and 4 b buttons (2 up/down) for wallbuttons
# Optional input signal on ADC can be used for a rain sensor
# ======================================================================
#
# Wiring:
# ------
@curzon01
curzon01 / fail2ban-statusall
Last active August 9, 2020 08:18 — forked from kamermans/fail2ban-allstatus.sh
Show status of all fail2ban jails at once
alias fail2ban-statusall="fail2ban-client status | sed -n 's/,//g;s/.*Jail list://p' | xargs -n1 fail2ban-client status"
about = """
Titel: pyYASDI
Autor: Sebastian Schulte
Version: 1.0.0
Datum: 18.3.07 / 18.3.07 / 18.3.07
Datei: pyYASDI.py
+ SMA YASDI Library Wrapper fuer Python Scripting Language v1"""
import yasdiwrapper