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
/** | |
* Simple sketch to reset your cable modem if the internet connection dies | |
* (C) 2022 Thomas Reidemeister | |
* Tested on ESP8266 NodeMCU board | |
* | |
* [GPIO]->[transistor-driven 5V Relay]->[Cable Modem power cable] | |
*/ | |
#include <Pinger.h> | |
#include <ESP8266WiFi.h> | |
extern "C" |
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
# This gists highlights the impact of various distortion parameters | |
import numpy as np | |
import cv2 | |
# Set camera calibration parameters | |
fx = 8262.158089604814 | |
fy = 8241.805993224913 | |
cx = 2147.360664332489 | |
cy = 897.9466061409038 | |
k1 = -0.33193540220291506 |
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
""" | |
Simple script to check the brightness distribution from images. | |
Ensure you have opencv and matplotlib installed, via | |
pip install opencv-python matplotlib | |
""" | |
__author__ = "Thomas Reidemeister <thomas@labforge.ca>" | |
import sys |
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/ntp.conf, configuration for ntpd; see ntp.conf(5) for help | |
driftfile /var/lib/ntp/ntp.drift | |
# Leap seconds definition provided by tzdata | |
leapfile /usr/share/zoneinfo/leap-seconds.list | |
# Enable this if you want statistics to be logged. | |
#statsdir /var/log/ntpstats/ |
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/ntp.conf, configuration for ntpd; see ntp.conf(5) for help | |
driftfile /var/lib/ntp/ntp.drift | |
# Leap seconds definition provided by tzdata | |
leapfile /usr/share/zoneinfo/leap-seconds.list | |
# Enable this if you want statistics to be logged. | |
#statsdir /var/log/ntpstats/ |