Skip to content

Instantly share code, notes, and snippets.

@tehmaze
tehmaze / printer.cfg
Created February 28, 2022 11:08
FLSUN SR Klipper config
# This file contains common pin mappings for the BIGTREETECH SKR V1.3 board used
# in the FLSUN SuperRacer. To use this config, the firmware should be compiled
# for the LPC1768.
[mcu]
# SKR 1.3 for stepper E+sensors+heaters
serial:
[mcu:abc]
# Supernova for steppers A,B,C
@tehmaze
tehmaze / printer.cfg
Created May 24, 2021 19:49
CoreXY torture tests
[gcode_macro HOME]
gcode:
# home not homed axies
{% for axis in ['x', 'y', 'z'] %}
{% if axis not in printer.toolhead.homed_axes %}
G28 { axis }
{% endif %}
{% endfor %}
[gcode_macro CENTER]
@tehmaze
tehmaze / printer.cfg
Last active November 5, 2022 14:05
Klipper color ramp on Mini 12864 display with NeoPixels
[neopixel fysetc_mini12864]
pin: EXP1_6
chain_count: 3
color_order: RGB
initial_RED: 0.0
initial_GREEN: 0.0
initial_BLUE: 0.4
[delayed_gcode set_displaytemp_timer]
initial_duration: 1
This file has been truncated, but you can view the full file.
; generated by PrusaSlicer 2.3.0+ on 2021-02-20 at 22:50:29 UTC
;
; external perimeters extrusion width = 0.56mm
; perimeters extrusion width = 0.56mm
; infill extrusion width = 0.56mm
; solid infill extrusion width = 0.56mm
; top infill extrusion width = 0.50mm
; first layer extrusion width = 0.52mm
@tehmaze
tehmaze / secret-menu.sh
Created September 14, 2017 13:20
Simple dmenu-like thing to type secrets from my password store(s)
#!/bin/bash
#
# Stupid simple select-and-type dmenu for looking up passwords
#
# mfa - simple tool that will generate TOTP tokens stored in gopass
# gopass - awesome password manager https://github.com/justwatchcom/gopass
#
# rofi - dmenu-like https://github.com/DaveDavenport/rofi
#
diff -ur bladeRF-2016.06.orig/host/common/include/osx/clock_gettime.h bladeRF-2016.06/host/common/include/osx/clock_gettime.h
--- bladeRF-2016.06.orig/host/common/include/osx/clock_gettime.h 2016-06-29 23:24:49.000000000 +0200
+++ bladeRF-2016.06/host/common/include/osx/clock_gettime.h 2017-03-10 23:11:37.000000000 +0100
@@ -35,11 +35,6 @@
# error "This file is intended for use with OSX systems only."
#endif
-typedef int clockid_t;
-#define CLOCK_REALTIME 0
-
@tehmaze
tehmaze / ax25-tools-systemd.patch
Last active November 3, 2015 13:17
ax25-tools patch for systems
diff --git a/PKGBUILD b/PKGBUILD
index 5268bd1..e0467e4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,16 +3,21 @@
pkgname=ax25-tools
pkgver=0.0.10_rc4
_pkgver=${pkgver//_/-}
-pkgrel=3
+pkgrel=4
@tehmaze
tehmaze / ax25ipd.conf
Created November 2, 2015 20:02
start ax25ipd KISS mode
socket udp 93
mode tnc
device /dev/pts/2
speed 115200
loglevel 4
broadcast QST-0 NODES-0 FBB-0
# extern
route ks0nod 194.59.177.64 udp 93 d
@tehmaze
tehmaze / asciifix.py
Created August 18, 2015 08:45
Fix broken ASCIIs interpreted as ANSi by PabloDraw
#!/usr/bin/python
import sys
lines = []
overflow = False
with open(sys.argv[1]) as i:
for line in i:
line = line.rstrip('\r\n')
if overflow:
@tehmaze
tehmaze / c64xbin.py
Last active August 29, 2015 14:16
C64 PRG to XBIN converter
#!/usr/bin/env python
#
# (c) 2015 Wijnand Modderman-Lenstra, https://maze.io/
#
# Convert a C64 memory dump (VICE) to eXtended Binary (XBIN)
#
# To capture a dump in VICE, attach to the monitor, and run the following::
# > $01 $35
# save "dump.ram" 0 $0000 $FFFF
#