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
./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
// 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
#!/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
--- /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
# 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
--- | |
- name: add ssh, deploy root key | |
hosts: all | |
become: yes | |
tasks: | |
- name: disable password authentication | |
lineinfile: | |
path: /etc/ssh/sshd_config | |
regexp: '^PasswordAuthentication' |
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: set name, adjust /etc/hosts | |
hosts: all | |
become: yes | |
# order matters! | |
tasks: | |
- name: adjust /etc/hosts | |
replace: | |
path: /etc/hosts |
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: set up docker & compose | |
hosts: docker | |
become: yes | |
tasks: | |
- name: update package index | |
apt: | |
name: "*" | |
state: latest |
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/fstab define share | |
//192.168.178.2/scans /reshare cifs uid=reuser,gid=reuser,credentials=/root/cred | |
# /root/cred put credentials for upstream SMBv2/3 server | |
username=upuser | |
password=uppassword | |
domain=example |
OlderNewer