Skip to content

Instantly share code, notes, and snippets.

View TheTinkerDad's full-sized avatar
🏠
Working from home

Laszlo Merczel TheTinkerDad

🏠
Working from home
View GitHub Profile
// Required libraries:
// - Adafruit Unified Sensor (required for DHT)
// - DHT Sensor Library
// - NTPClient
#include <DHT.h>
#include <NTPClient.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
// Required libraries:
// - Adafruit Unified Sensor (required for DHT)
// - DHT Sensor Library
// - NTPClient
// - PubSubClient (for MQTT)
#include <DHT.h>
#include <NTPClient.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
ssid="YOUR_NETWORK_NAME"
psk="YOUR_PASSWORD"
key_mgmt=WPA-PSK
}
=============================8< docker-compose.yaml, cut here 8<==========================
version: '3.2'
volumes:
pihole:
services:
pihole:
image: pihole/pihole:latest
ports:
- 80:80
version: '2'
volumes:
portainer-data:
services:
portainer:
image: portainer/portainer:latest
container_name: base-portainer
---------- Commands for disabling Systemd Resolved
sudo systemctl disable systemd-resolved
sudo systemctl stop systemd-resolved
sudo rm /etc/resolv.conf
---------- Host resolv.conf (create a new /etc/resolv.conf on your host)
nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4
@TheTinkerDad
TheTinkerDad / docker-compose.yaml
Created October 17, 2020 01:00
Super-simple Docker Compose configuration for running Heimdall
version: "2.0"
volumes:
heimdall-data:
services:
heimdall:
image: linuxserver/heimdall:latest
ports:
- 9999:80
version: "3"
networks:
default:
driver: macvlan
driver_opts:
parent: enp7s0
ipam:
config:
- subnet: 192.168.1.0/24
version: "2.0"
volumes:
portainer-data:
cronicle-data:
cronicle-logs:
cronicle-plugins:
cronicle-app:
services:
version: "2.0"
services:
nut-upsd:
image: instantlinux/nut-upsd
ports:
- 3493:3493
environment:
- SERIAL=abcdef123456
secrets: