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
# nginx-reverse-proxy und Zertifikatsbeschaffer | |
# in ein Unterverzeichnis "le" legen und dort mit | |
# docker-compose starten; dann stimmen die erwähnten | |
# Präfixe aus c't 4/18, S. 88 | |
# aktualisiert 7.2.19 für Compose v3 | |
# (volumes_from nicht mehr unterstützt) | |
version: '3' | |
# user defined network für funktionierende Namensauflösung | |
networks: | |
ext: |
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
// Verarbeitet die JSON-Daten, die ein Sensor per Web-API abliefert | |
// und spuckt sie fertig formatiert zur Verarbeitung durch einen | |
// mqtt-Output-Node wieder aus. Funktioniert für Sensoren, die mit einem | |
// oder zwei Temperaturfühlern ausgestattet sind. | |
// Zur Entgegennahme in Node-Red eignet sich ein http-Input-Node, den | |
// man für die POST-Methode konfiguriert und uploads akzeptieren lässt. | |
var output_msgs = []; | |
for ( i= 0; i < 7; i++) { |
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/sbin/ddclient.stretch 2016-07-02 13:16:57.000000000 +0200 | |
+++ /usr/sbin/ddclient 2019-06-18 16:29:09.370194169 +0200 | |
@@ -1,7 +1,6 @@ | |
#!/usr/bin/perl -w | |
#!/usr/local/bin/perl -w | |
###################################################################### | |
-# $Id: ddclient 184 2015-05-28 19:59:34Z wimpunk $ | |
# | |
# DDCLIENT - a Perl client for updating DynDNS information | |
# |
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
./etc/ddclient/ddclient.conf | |
protocol=dynv6 | |
use=web,if=wlan0 | |
password='Bwt...C9e' | |
meinwgv4.dynv6.net | |
protocol=dynv6 | |
usev6=if,if=wlan0 | |
password='Bwt...C9e' | |
meinwgv6.dynv6.net |
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
./etc/apt/preferences.d/limit-unstable | |
Package: * | |
Pin: release a=unstable | |
Pin-Priority: 90 | |
./etc/apt/sources.list.d/unstable.list | |
deb http://deb.debian.org/debian/ unstable main | |
./etc/ddclient/ddclient.conf | |
protocol=dynv6 |
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
# Turn this to yes when you have configured the options below. | |
START_DARKSTAT=yes | |
# Don't forget to read the man page. | |
# You must set this option, else darkstat may not listen to | |
# the interface you want | |
INTERFACE="-i wg0" | |
DIR="/var/lib/darkstat" |
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 | |
NAME=$1 | |
IP=$2 | |
[ -e /etc/wireguard/$NAME.key ] && echo "Already present" && exit | |
DNS="1.1.1.1,2606:4700:4700::1111" | |
HOST="wg.example.com:12345" | |
SRVPUB=$(cat /etc/wireguard/private.key | wg pubkey) |
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 | |
# Wireguard auf Debian/Raspbian einrichten, | |
# nach c't 15/2019, S. 166 | |
# * läuft auf Raspbian oder Debian Netinst (Buster) | |
# * bitte nur auf frischen Installationen verwenden | |
# * Skript überschreibt Netzwerkkonfiguration | |
# * als pi (Raspbian) oder als root/passwortloses sudo (Debian) ausführen | |
# * schreibt Protokoll nach /var/log/wgstrap.log | |
# * zweistufiger Prozess, der einen Reboot erfordert |
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 | |
# enable host for ansible | |
set -e | |
PUBKEY="" | |
id -u ansible > /dev/null 2>&1 || \ | |
adduser ansible --disabled-password \ | |
--gecos "" --quiet | |
mkdir -p /home/ansible/.ssh | |
echo "$PUBKEY" \ | |
> /home/ansible/.ssh/authorized_keys |
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
--- | |
- name: add ssh, deploy root key | |
hosts: all | |
become: yes | |
tasks: | |
- name: disable password authentication | |
lineinfile: | |
path: /etc/ssh/sshd_config | |
regexp: '^PasswordAuthentication' |
OlderNewer