Skip to content

Instantly share code, notes, and snippets.

@tehmaze
tehmaze / printer.cfg
Last active Apr 11, 2021
Klipper color ramp on Mini 12864 display with NeoPixels
View printer.cfg
[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
View SKR_Pro_flat.gcode
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
@tehmaze
tehmaze / secret-menu.sh
Created Sep 14, 2017
Simple dmenu-like thing to type secrets from my password store(s)
View secret-menu.sh
#!/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
#
View use_builtin_clock_gettime.patch
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 Nov 3, 2015
ax25-tools patch for systems
View ax25-tools-systemd.patch
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 Nov 2, 2015
start ax25ipd KISS mode
View ax25ipd.conf
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 Aug 18, 2015
Fix broken ASCIIs interpreted as ANSi by PabloDraw
View asciifix.py
#!/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 Aug 29, 2015
C64 PRG to XBIN converter
View c64xbin.py
#!/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
#
View keybase.md

Keybase proof

I hereby claim:

  • I am tehmaze on github.
  • I am maze (https://keybase.io/maze) on keybase.
  • I have a public key whose fingerprint is 07E4 0BB3 3D63 D490 4797 3421 ED7B 1576 294D F221

To claim this, I am signing this object:

@tehmaze
tehmaze / wx.py
Created Apr 20, 2014
WX report generator for PyMultimonAPRS
View wx.py
#!/usr/bin/env python
import json
import pywapi
import sys
import time
LOCATION_ID = sys.argv[1]
wxs = pywapi.get_weather_from_weather_com('NLXX0250', 'metric')