Skip to content

Instantly share code, notes, and snippets.

hacking home at home

Tom Hensel gretel

hacking home at home
View GitHub Profile
gretel / .stignore
Last active Feb 20, 2019
syncthing ignore, chefignore, whatever ignore
View .stignore
gretel / .slate
Last active Sep 13, 2022
configuration of window manager for OSX utilizing and for capslock remapping
View .slate
# 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 /
Last active May 30, 2017
install suricata on openbsd-current
## adopted from
doas pkg_add gcc git libtool pcre jansson libmagic libyaml
## version strings might change like patchlevel and stuff
doas pkg_add libnet- autoconf-2.69p2 automake-1.14.1p0
git clone --depth 1 git://
cd oisf
git clone --depth 1 -b 0.5.x
gretel / config.json
Created Apr 27, 2016
homebridge configuration
View config.json
"bridge": {
"name": "CRS Cyber",
"username": "AA:BB:CC:00:11:22",
"port": 51826,
"pin": "000-000-000"
"description": "CRS Cyber Control",
"accessories": [
gretel /
Last active Apr 4, 2019
`vagrant` on `ubuntu-16.04` can get in conflict with *unattended-upgrade* running and locking the `dpkg` subsystem. this script waits gracefully
#!/usr/bin/env bash
# 2016 tom hensel <>
# `vagrant` on `ubuntu-16.04` can get in conflict with *unattended-upgrade* running and locking the `dpkg` subsystem. this script waits gracefully
# in `Vagrantfile`:
# config.vm.provision 'Wait for unattended-upgrades', type: 'shell', path: './provisioning/', args: %w( dpkg apt unattended-upgrade )
function wait_procnames {
while true; do
gretel / .curlrc
Created May 14, 2016
people seem to be afraid about having a .curlrc - i dont because i have read the documentation :)
View .curlrc
user-agent="curl/7.9.8 (i686-pc-linux-gnu) libcurl 7.9.8 (OpenSSL 0.9.6b) (ipv6 enabled)"
gretel / .profile
Created May 14, 2016
openbsd login shell profile
View .profile
# $OpenBSD: dot.profile
# gretel's sh/ksh initialization
trap '. $HOME/.logout; exit' 0
escape=$(print '\033')
ctrla=$(print '\001')
PS1=$(print '\001\015')
PS1=$PS1$ctrla$escape'[$(($? ? 31 : 32))m'$ctrla
gretel / private.xml
Last active Jun 9, 2016
mappings for my kezboard with capslock mapped to hyper and stuff using karabiner and seil
View private.xml
<?xml version="1.0"?>
<!-- -->
gretel /
Last active Feb 6, 2020
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)
### 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 /
Last active Jun 22, 2016
debian/ubuntu: script ensures `python-2.7` gets installed so `ansible` can be
#!/usr/bin/env sh
# 2016 tom hensel <>
# this script ensures `python-2.7` gets installed so `ansible` can be (on debian)
# i.e. in a `Vagrantfile`:
# config.vm.provision 'Bootstrap Python', type: 'shell', path: 'scripts/', args: ['2.7', 'python python-pkg-resources']
if [ -z "$find_pyver" ]; then