Skip to content

Instantly share code, notes, and snippets.

hacking home at home

Tom Hensel gretel

hacking home at home
View GitHub Profile
gretel / smtpd.conf
Last active Aug 31, 2022
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 Feb 5, 2021
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 / add_printer.png
Last active Sep 19, 2022
notes on how to multiply klipper-instances (and moonraker) to have a multi-printer setup using (and/or
gretel / GP2Y1010AU0F.h
Last active Jan 6, 2022
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 Jul 16, 2021
"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 Oct 17, 2020
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 Nov 3, 2019
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
gretel /
Created Apr 23, 2019
install telegraf on openbsd 6.4 using a snapshot package for 6.5
ln -s /usr/lib/ /usr/lib/
ln -s /usr/lib/ /usr/lib/
gretel / Configuration.h
Last active Jul 2, 2019
Marlin 2.0 Configuration for a Multec M420S enabling AUTO_BED_LEVELING_UBL, JUNCTION_DEVIATION, LIN_ADVANCE, ...
View Configuration.h
* Marlin 3D Printer Firmware
* Copyright (c) 2019 MarlinFirmware []
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
gretel /
Created Feb 20, 2019
the ocean is really nice today
### disable greeting
set -e fish_greeting
# store name of system/architecture
set -x PLATFORM (command uname -s)
# ensure set
set -x SHELL (command which fish)
# prefix for user installations