Skip to content

Instantly share code, notes, and snippets.

@lorf
lorf / README.md
Last active April 8, 2020 12:52
Standalone prometheus config for using with KubeGraf

Standalone prometheus config for using with KubeGraf. Supports prometheus.io/scrape, prometheus.io/port and prometheus.io/path annotations for pods and services.

@lorf
lorf / printer.cfg
Last active February 8, 2023 12:10
Klipper config for hacked RAMPS on Kossel Delta
# Pin assignments: https://reprap.org/wiki/SMART_RAMPS
[stepper_a]
step_pin: ar54
dir_pin: ar55
enable_pin: !ar38
# X-max endstop
endstop_pin: ^ar2
position_endstop: 431.8345625
angle: 209.67
# 32 microsteps
@lorf
lorf / README.md
Last active April 27, 2017 07:54
PCB heat bed for MaKe3D D2 Mini
@lorf
lorf / 00-Notes.md
Last active March 5, 2017 11:51
Repetier 0.92.9 configuration for Anet A8 with autolevel
@lorf
lorf / 00-STM8S-clock-kit.md
Last active September 6, 2019 11:38
STM8S DIY LED Clock Kit uCLOCK V1.0 2014-12-31

DIY LED clock kit marked as "uCLOCK V1.0 2014-12-31"

The clock kit is from here. The kit comes without the case, suitable case can be purchased here.

The files I received from the seller are included.

The MCU used is STM8S003K3. 7-segment displays - KYX-1106BGG (can't find the datasheet for this exact part, here is the datasheet for the similar displays, also included here as TOS-1106BS-B.pdf).

Quick directions: R16-R23 - 220R (resistance may vary for different displays); R1,R7-R10,R29 - 10k; R11-R15 - 2.2k; C11,C13 - 20pF; C1 - 0.1uF (marked 105); C2,C4,C6 - 10nF (marked 104). Buzzer plus pin towards power connector. DS3 should be placed decimal point up.

@lorf
lorf / hc-05-orig.psr
Last active June 14, 2017 16:34
PS keys of HC05 (as came in)
// PSKEY_BDADDR
&0001 = 00XX XX52 00XX XXXX
// PSKEY_COUNTRYCODE
&0002 = 0000// North America and Europe
// PSKEY_CLASSOFDEVICE
&0003 = 0000 0000
// PSKEY_DEVICE_DRIFT
&0004 = 00fa
// PSKEY_DEVICE_JITTER
&0005 = 000a