Skip to content

Instantly share code, notes, and snippets.

View antwal's full-sized avatar

Walter Antolini antwal

View GitHub Profile
@antwal
antwal / iptables-docker-bridge.sh
Last active December 9, 2023 11:50
Allow forward to Docker Network Bridge (Debian 11/12)
#!/bin/bash
IPT="/sbin/iptables"
DOCKER="/usr/bin/docker"
NETWORK_NAME="container-net"
[ "$IFACE" = "eno1" ] || exit 0 # we only want interface "eno1"
echo -n "Checking docker..."
! [ -f $DOCKER ] && echo "Docker is not installed." && exit 0
/**
* Rotary Encoder Accelleration
* - Debug for KY-040
*
* interrupt pins:
* 2, 3 - Arduino UNO/Nano
* D5,D6 - ESP8266 NodeMCU
*/
#define DEBUG false