Skip to content

Instantly share code, notes, and snippets.

View gretel's full-sized avatar
🚀
the jitter does know where it is at none time

Tom Hensel gretel

🚀
the jitter does know where it is at none time
View GitHub Profile
@gretel
gretel / amiibo.sh
Last active November 23, 2022 22:37
query, read, encode (using amiitool), write and lock NTAG215 (using uFR Nano hardware) for the purpose of researching Nintendo's Amiibo infrastructure Raw
#!/bin/bash
# This is a companion script to https://github.com/konstantin-kelemen/arduino-amiibo-tools
# The original post this was crafted for was https://games.kel.mn/en/create-amiibo-clones-with-arduino/
# For more info go to https://games.kel.mn/en/companion-script-to-simplify-amiibo-cloning-with-arduino/
#requirements:
#sha1sum (part of coreutils)
#xxd (part of vim)
#hexdump
#amiitool (https://github.com/socram8888/amiitool)
@gretel
gretel / resume.json
Last active November 23, 2022 13:31
json resume de_DE
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Tom Hensel",
"label": "Belastbare Konzepte, technische Innovation, qualitative Exzellenz",
"image": "",
"email": "linkedin@hensel.consulting",
"phone": "0157-35234208",
"url": "",
"summary": "Spezialisiert auf die Bereiche Technische Beratung (Consultant) 📚 Betrieb von Informationstechnik (DevOps) 🤖 Ausbildung von Fachkräften (Training) 👨🏫",
@gretel
gretel / .slate
Last active September 13, 2022 13:10
configuration of https://github.com/mattr-/slate window manager for OSX utilizing https://pqrs.org/osx/karabiner/seil.html and https://pqrs.org/osx/karabiner/ for capslock remapping
# Configuration
config checkDefaultsOnLoad true
config defaultToCurrentScreen true
config focusCheckWidthMax 3000
config nudgePercentOf screenSize
config resizePercentOf screenSize
config secondsBetweenRepeat 0.1
config undoOps move,resize
#config windowHintsOrder persist
@gretel
gretel / smtpd.conf
Last active August 31, 2022 10:53
low bs openbsd mail server configuration
# $OpenBSD: smtpd.conf,v 1.9 2016/05/03 18:43:45 jung Exp $
# tables
table aliases file:/etc/mail/aliases
table domains file:/etc/mail/domains
table passwd file:/etc/mail/passwd
table secrets file:/etc/mail/secrets
table deny db:/etc/mail/deny.db
table receip db:/etc/mail/receip.db
@gretel
gretel / bjorklund.py
Last active April 27, 2022 19:24
Euclidean rhythms: Björklund's algorithm in Python 3
#!/usr/bin/env python3
# Copyright (c) 2011 Brian House
# https://github.com/brianhouse/bjorklund
# Copyright (c) 2017 Tom Hensel
#
import argparse
import sys
@gretel
gretel / get_openbsd.sh
Last active March 13, 2021 00:13
get openbsd distribution files, and update the system in-place. this is very dangerous and you should not do it.
#!/bin/sh
#
#MIRROR=https://ftp.bytemine.net/pub/OpenBSD/snapshots
#MIRROR=https://ftp.hostserver.de/pub/OpenBSD/snapshots
#MIRROR=https://ftp.openbsd.org/pub/OpenBSD/snapshots
MIRROR=https://cdn.openbsd.org/pub/OpenBSD/snapshots
if [ "$1" == "" ]; then
ARCH=`uname -p` # default
@gretel
gretel / course53.py
Last active October 17, 2020 19:43
cli for route53 to create/update A (ipv4) and AAAA (ipv6) records. use in conjunction with https://gist.github.com/gretel/d42879295a0750c102edc7babbebcc0e
#!/usr/bin/env python3
# https://gist.github.com/gretel/8bb0c2936ae5cda12ae5f0bf381dd3f0
# based on https://github.com/edgan/route53-set-hostname/blob/master/route53-set-hostname.py
import boto3
import sys
import argparse
class Course53(object):
def __init__(self, region, domain, subdomain, hosted_zone_id, record_type, ipaddress, ttl):
@gretel
gretel / nonstatic.py
Created October 17, 2020 19:43
nanoservice "api" which listens to "dyndns" requests from a router to update records on route53 (via shellscript) to be used in conjunction with https://gist.github.com/gretel/8bb0c2936ae5cda12ae5f0bf381dd3f0
#!/usr/bin/env python3
#
from flask import Flask, request
#from waitress import serve
from pid.decorator import pidfile
import ipaddress
import setproctitle
import subprocess
@gretel
gretel / update.fish
Last active February 6, 2020 10:39
keeps my tools and their requirements up-to-date (gpg keys, fisherman, completions, appstore, homebrew, cask, npm, pip (per python version - needs pyenv), gem and bundler (per ruby version - needs ry)
# https://gist.github.com/gretel/e6cd59fba3d31fe5a4e9a1feea985375
### when 'update' is called without arguments these are the defaults:
if not set -q update_funcs
set -x update_funcs \
xcode_select \
peru \
homebrew \
homebrew_cask \
apm \
@gretel
gretel / codesign_osx.sh
Last active November 3, 2019 16:43
shellscript to codesign `nwjs` (from version 0.42.2 up) apps for distribution. not getting accepted on the apple store, though..
#!/bin/sh
#
# tom hensel <code@jitter.eu>
#
#
# variables and composition
#
CERTIFICATE_P12="sign/SomeCert.p12"