Skip to content

Instantly share code, notes, and snippets.

@tehmaze
tehmaze / p1.py
Created January 1, 2014 14:10
P1 power meter daemon that stuffs data into graphite
#!/usr/bin/python
#
# usage: p1-daemon graphite.host.here
import serial
import socket
import sys
import time
@tehmaze
tehmaze / wx.py
Created April 20, 2014 20:35
WX report generator for PyMultimonAPRS
#!/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')

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 / 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
#
@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 / 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 / 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
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 / 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
#
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