Skip to content

Instantly share code, notes, and snippets.

View gretel's full-sized avatar
🚀
the jitter does know where it is at none time

Tom Hensel gretel

🚀
the jitter does know where it is at none time
View GitHub Profile
@gretel
gretel / printer.cfg
Created January 28, 2024 18:19
creality ender 3 2020 klipper configuration
# This line includes all the standard macros.
[include klipper-macros/*.cfg]
# Uncomment to include features that require specific hardware support.
# LCD menu support for features like bed surface selection and pause next layer.
[include klipper-macros/optional/lcd_menus.cfg]
# Optimized bed leveling
[include klipper-macros/optional/bed_mesh.cfg]
[include macro.cfg]
@gretel
gretel / printer.cfg
Last active January 28, 2024 18:18
get klippered on multec m420+, skr v1.3, bigtreetech tmc2209
# This line includes all the standard macros.
[include klipper-macros/*.cfg]
# Uncomment to include features that require specific hardware support.
# LCD menu support for features like bed surface selection and pause next layer.
[include klipper-macros/optional/lcd_menus.cfg]
# Optimized bed leveling
[include klipper-macros/optional/bed_mesh.cfg]
[include macro.cfg]
@gretel
gretel / GP2Y1010AU0F.h
Last active December 7, 2023 00:54
esphome (wemos d1 mini) sensor phalanx (temperature, humidity, iaq, particles) including a custom component for the waveshare dust sensor (GP2Y1010AU0F)
// https://gist.github.com/gretel/3add6f08774f930ef0eaff03b847db64
#include "esphome.h"
static const char *TAG = "GP2Y1010AU0F.sensor";
#define UPDATE_INTERVAL 12000 // update interval in ms
// measure while the sensor is running
#define VOLTAGE_VREF 4.62
@gretel
gretel / .config
Last active October 31, 2023 21:29
openwrt diff configuration for a pcengine apu2 based dual minipcie 2.4/5ghz access point bridge providing wpa3
CONFIG_TARGET_x86=y
CONFIG_TARGET_x86_64=y
CONFIG_TARGET_x86_64_DEVICE_generic=y
CONFIG_DEVEL=y
CONFIG_TOOLCHAINOPTS=y
CONFIG_BUSYBOX_CUSTOM=y
CONFIG_ATH10K_LEDS=y
CONFIG_ATH10K_THERMAL=y
CONFIG_ATH9K_HWRNG=y
CONFIG_ATH9K_SUPPORT_PCOEM=y
@gretel
gretel / .profile
Created May 14, 2016 22:34
openbsd login shell profile
# $OpenBSD: dot.profile
#
# gretel's sh/ksh initialization
trap '. $HOME/.logout; exit' 0
escape=$(print '\033')
ctrla=$(print '\001')
PS1=$(print '\001\015')
PS1=$PS1$ctrla$escape'[$(($? ? 31 : 32))m'$ctrla
@gretel
gretel / Configuration.h
Last active January 30, 2023 16:17
Marlin 2.0 Configuration for a Multec M420S enabling AUTO_BED_LEVELING_UBL, JUNCTION_DEVIATION, LIN_ADVANCE, ...
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* 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
gretel / pico_w.yaml
Last active January 17, 2023 21:25
ESPHome on Raspberry Pi Pico W
---
substitutions:
devicename: 'picow'
upper_devicename: 'PicoWireless'
logger_level: 'INFO'
esphome:
name: ${devicename}
project:
name: "jitter.eu"
@gretel
gretel / gosundstrip.yaml
Created December 8, 2022 17:56
ESPHome on Gosund P1 (and clone clones)
#$ esphome -s devicename kitchenstrip -s upper_devicename KitchenStrip -s restore_from_flash True run gosund_strip.yaml --device /dev/cu.usbserial-2230
---
substitutions:
devicename: 'gosundstrip'
upper_devicename: 'GosundStrip'
devicecomment: 'https://www.amazon.de/gp/product/B09JVSB9LD?psc=1'
logger_level: 'WARN'
restore_from_flash: 'False'
esp8266:
@gretel
gretel / yunshanesp8266.yaml
Created December 8, 2022 17:50
ESPHome on Yunshan ESP8266
#$ esphome -s devicename bathmirrorheating -s upper_devicename BathMirrorHeating run yunshanesp8266.yaml --device /dev/cu.usbserial-2230
---
substitutions:
devicename: 'yunshanesp8266'
upper_devicename: 'Yunshan ESP8266'
devicecomment: 'https://arduinoplusplus.wordpress.com/2018/08/28/home-automation-and-the-internet-of-things-the-start/'
logger_level: 'INFO'
esphome:
name: ${devicename}
@gretel
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)
# $OpenBSD: httpd.conf,v 1.20 2018/06/13 15:08:24 reyk Exp $
chroot "/zfs/videos"
logdir "/var/log"
server "*" {
listen on 10.0.100.20 port 8442
tcp nodelay
tcp sack
tcp socket buffer 65536