Skip to content

Instantly share code, notes, and snippets.

hacking home at home

Tom Hensel gretel

hacking home at home
View GitHub Profile
gretel / pico_w.yaml
Last active January 17, 2023 21:25
ESPHome on Raspberry Pi Pico W
View pico_w.yaml
devicename: 'picow'
upper_devicename: 'PicoWireless'
logger_level: 'INFO'
name: ${devicename}
name: ""
gretel / gosundstrip.yaml
Created December 8, 2022 17:56
ESPHome on Gosund P1 (and clone clones)
View gosundstrip.yaml
#$ esphome -s devicename kitchenstrip -s upper_devicename KitchenStrip -s restore_from_flash True run gosund_strip.yaml --device /dev/cu.usbserial-2230
devicename: 'gosundstrip'
upper_devicename: 'GosundStrip'
devicecomment: ''
logger_level: 'WARN'
restore_from_flash: 'False'
gretel / yunshanesp8266.yaml
Created December 8, 2022 17:50
ESPHome on Yunshan ESP8266
View yunshanesp8266.yaml
#$ esphome -s devicename bathmirrorheating -s upper_devicename BathMirrorHeating run yunshanesp8266.yaml --device /dev/cu.usbserial-2230
devicename: 'yunshanesp8266'
upper_devicename: 'Yunshan ESP8266'
devicecomment: ''
logger_level: 'INFO'
name: ${devicename}
gretel / resume.json
Last active November 23, 2022 13:31
json resume de_DE
View resume.json
"$schema": "",
"basics": {
"name": "Tom Hensel",
"label": "Belastbare Konzepte, technische Innovation, qualitative Exzellenz",
"image": "",
"email": "",
"phone": "0157-35234208",
"url": "",
"summary": "Spezialisiert auf die Bereiche Technische Beratung (Consultant) 📚 Betrieb von Informationstechnik (DevOps) 🤖 Ausbildung von Fachkräften (Training) 👨🏫",
gretel / smtpd.conf
Last active August 31, 2022 10:53
low bs openbsd mail server configuration
View smtpd.conf
# $OpenBSD: smtpd.conf,v 1.9 2016/05/03 18:43:45 jung Exp $
# tables
table aliases file:/etc/mail/aliases
table domains file:/etc/mail/domains
table passwd file:/etc/mail/passwd
table secrets file:/etc/mail/secrets
table deny db:/etc/mail/deny.db
table receip db:/etc/mail/receip.db
gretel / printer.cfg
Last active March 3, 2023 12:47
get klippered on multec m420+, skr v1.3, bigtreetech tmc2209
View printer.cfg
step_pin: P2.2
dir_pin: !P2.6
enable_pin: !P2.1
microsteps: 16
rotation_distance: 40
endstop_pin: P1.29 # P1.28 for X-max
position_endstop: 0
position_max: 320
homing_speed: 50
gretel / GP2Y1010AU0F.h
Last active March 14, 2023 00:34
esphome (wemos d1 mini) sensor phalanx (temperature, humidity, iaq, particles) including a custom component for the waveshare dust sensor (GP2Y1010AU0F)
View GP2Y1010AU0F.h
#include "esphome.h"
static const char *TAG = "GP2Y1010AU0F.sensor";
// measure while the sensor is running
#define VOLTAGE_VREF 4.62
#define PIN_ADC A0
gretel / httpd.conf
Last active December 4, 2022 07:29
"openbinge" put relayd and varnishd in front of some (ob)httpd serving mp4 files to get a html-less video streaming endpoint (pf -> relayd -> varnish -> obhttpd -> file)
View httpd.conf
# $OpenBSD: httpd.conf,v 1.20 2018/06/13 15:08:24 reyk Exp $
chroot "/zfs/videos"
logdir "/var/log"
server "*" {
listen on port 8442
tcp nodelay
tcp sack
tcp socket buffer 65536
gretel /
Created October 17, 2020 19:43
nanoservice "api" which listens to "dyndns" requests from a router to update records on route53 (via shellscript) to be used in conjunction with
#!/usr/bin/env python3
from flask import Flask, request
#from waitress import serve
from pid.decorator import pidfile
import ipaddress
import setproctitle
import subprocess
gretel /
Last active November 3, 2019 16:43
shellscript to codesign `nwjs` (from version 0.42.2 up) apps for distribution. not getting accepted on the apple store, though..
# tom hensel <>
# variables and composition