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 / try_connect_ssh.sh
Created Jul 13, 2011
zsh/bash "command not found" handler that will use ssh if $1 resolves
View try_connect_ssh.sh
#
# _______
# ____________ _______ _\__ /_________ ___ _____
# | _ _ \ _ | ____\ _ / | |/ _ \
# | / / / / | | | /___/ _ | | / /
# |___/___/ /___/____|________|___ | |_| |___|_____/
# \__/ |___|
#
#
# Put this in your ~/.zshrc or ~/.bashrc:
@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
#
@tehmaze
tehmaze / check-key.sh
Created Jul 10, 2011
OpenVPN Yubikey authentication
View check-key.sh
#! /bin/bash
# _______
# ____________ _______ _\__ /_________ ___ _____
# | _ _ \ _ | ____\ _ / | |/ _ \
# | / / / / | | | /___/ _ | | / /
# |___/___/ /___/____|________|___ | |_| |___|_____/
# \__/ |___|
#
# (c) 2011 Wijnand Modderman-Lenstra <maze@pyth0n.org>
# MIT License
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 / p1.py
Created Jan 1, 2014
P1 power meter daemon that stuffs data into graphite
View p1.py
#!/usr/bin/python
#
# usage: p1-daemon graphite.host.here
import serial
import socket
import sys
import time
@tehmaze
tehmaze / i3status-maze.py
Last active Dec 15, 2015
i3status script
View i3status-maze.py
#!/usr/bin/env python2
# -*- coding: utf8; -*-
import json
import glob
import multiprocessing
import os
import sys
import time
@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