Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / cp437.py
Created September 13, 2012 13:47
cp437 in python
#!/usr/bin/python
# _______
# ____________ _______ _\__ /_________ ___ _____
# | _ _ \ _ | ____\ _ / | |/ _ \
# | / / / / | | | /___/ _ | | / /
# |___/___/ /___/____|________|___ | |_| |___|_____/
# \__/ |___|
#
#
# (c) 2009-2012 Wijnand Modderman-Lenstra <maze@pyth0n.org>
@tehmaze
tehmaze / .tmux.conf
Created July 23, 2012 23:08
tmux configuration, inspired on vim-powerline
# c-b .. really?
set-option -g prefix C-a
# c-a c-a for the last active window
bind-key C-a last-window
# command sequence for nested tmux sessions
bind-key a send-prefix
# start window numbering at 1
@tehmaze
tehmaze / hamlib-libusb-1.0.patch
Created April 16, 2012 15:06
hamlib-1.2.15 patch to look for libusb-1.0 rather than libusb
diff -ur hamlib-1.2.15.org/configure hamlib-1.2.15/configure
--- hamlib-1.2.15.org/configure 2012-02-03 03:47:07.000000000 +0100
+++ hamlib-1.2.15/configure 2012-04-16 17:05:11.000000000 +0200
@@ -19863,12 +19863,12 @@
pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1\""; } >&5
- ($PKG_CONFIG --exists --print-errors "libusb >= 0.1") 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 0.1\""; } >&5
@tehmaze
tehmaze / tmux.conf
Created August 11, 2011 08:32
tmux configuration
# c-b .. really?
set-option -g prefix C-a
# c-a c-a for the last active window
bind-key C-a last-window
# command sequence for nested tmux sessions
bind-key a send-prefix
# start window numbering at 1
@tehmaze
tehmaze / tsocks-1.8_macosx.patch
Created August 8, 2011 20:11
tsocks-1.8 patch for Mac OSX
diff -Nur tsocks-1.8.org/Makefile.in tsocks-1.8/Makefile.in
--- tsocks-1.8.org/Makefile.in 2002-03-16 11:12:40.000000000 +0100
+++ tsocks-1.8/Makefile.in 2011-08-08 22:17:27.000000000 +0200
@@ -1,6 +1,7 @@
# Makefile used by configure to create real Makefile
CC=@CC@
+SHLIB_EXT=@SHLIB_EXT@
prefix=@prefix@
exec_prefix = @exec_prefix@