Skip to content

Instantly share code, notes, and snippets.

View jbetsinger's full-sized avatar

Jim Betsinger jbetsinger

View GitHub Profile
@jbetsinger
jbetsinger / donotuse3.py
Created October 14, 2020 13:04 — forked from MineRobber9000/donotuse3.py
How to NEVER use lambdas - Python 3 edition
###########################################################
# How to NEVER use lambdas. An inneficient and yet educa- #
# tonal [sic] guide to the proper misuse of the lambda #
# construct in Python 3.x. [DO NOT USE ANY OF THIS EVER] #
# original by (and apologies to): e000 (13/6/11) #
# now in Python 3 courtesy of: khuxkm (17/9/20) #
###########################################################
## Part 1. Basic LAMBDA Introduction ##
# If you're reading this, you've probably already read e000's
@jbetsinger
jbetsinger / QNAP -> PI-Hole Docker Install.md
Last active May 27, 2020 16:07
Run Pi Hole on QNAP ContainerStation

Create a Static IP

docker network create -d qnet --ipam-driver=qnet --ipam-opt=iface=eth0 --subnet=192.168.0.1/24 --gateway=192.168.0.1 docker-static-bridge

Create Container

`docker run -d -t -i
--name pi-hole
-v /share/Files/Containers/mounts/pihole/dnsmasq.d:/etc/dnsmasq.d:rw
-v /share/Files/Containers/mounts/pihole:/etc/pihole:rw \

@jbetsinger
jbetsinger / ThingsBoard.h
Created November 13, 2019 17:30 — forked from justind000/ThingsBoard.h
IoT Pool Monitor
#include <WiFi.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
WiFiClient wifiClient;
PubSubClient client(wifiClient);
// your network information
const char *ssid = "";
const char *password = "";