Skip to content

Instantly share code, notes, and snippets.

View CornelisDenhart's full-sized avatar

Cornelis Denhart CornelisDenhart

View GitHub Profile
@giannello
giannello / setup.sh
Last active July 5, 2024 07:37
Install fprintd-tod with support for Broadcom readers on Debian testing
#!/usr/bin/env sh
####################################################################
### ____ _____ ____ ___ _ _ _ ___ _ _ _ __ __ ###
### | _ \| ____| __ )_ _| / \ | \ | | / _ \| \ | | | \ \ / / ###
### | | | | _| | _ \| | / _ \ | \| | | | | | \| | | \ V / ###
### | |_| | |___| |_) | | / ___ \| |\ | | |_| | |\ | |___| | ###
### |____/|_____|____/___/_/ \_\_| \_| \___/|_| \_|_____|_| ###
####################################################################
####### _ _ ___ _ _ ____ _ _ _ _ _____ _ _ ########
@gmag11
gmag11 / nodered-ssl.conf
Last active November 26, 2023 21:29
NodeRed 1.0 reverse proxy configuration with Apache 2.4
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerName node.yourdomain.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html # this does not matter
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
@jacobtomlinson
jacobtomlinson / publish_temps.py
Created March 29, 2017 07:19
Send 1-wire temperature values from a Raspberry Pi to an MQTT broker
from __future__ import print_function
import os
import time
import paho.mqtt.client as mqtt
from paho.mqtt.client import MQTT_ERR_SUCCESS, MQTT_ERR_NO_CONN
DEVICES_PATH = "/sys/bus/w1/devices"