Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
hacking home at home

Tom Hensel gretel

🏠
hacking home at home
View GitHub Profile
@gretel
gretel / .stignore
Last active Feb 20, 2019
syncthing ignore, chefignore, whatever ignore
View .stignore
!.git
$RECYCLE.BIN/
*.log
*cache*
*temp*
*Temporary*
*tmp*
_old/
DEADJOE
Desktop.ini
@gretel
gretel / .slate
Last active Sep 13, 2022
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
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
gretel / install_suricata.sh
Last active May 30, 2017
install suricata on openbsd-current https://suricata-ids.org
View install_suricata.sh
#!/bin/sh
## adopted from https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Basic_Setup
doas pkg_add gcc git libtool pcre jansson libmagic libyaml
## version strings might change like patchlevel and stuff
doas pkg_add libnet-1.1.2.1p3v0 autoconf-2.69p2 automake-1.14.1p0
cd
git clone --depth 1 git://phalanx.openinfosecfoundation.org/oisf.git
cd oisf
git clone --depth 1 https://github.com/OISF/libhtp.git -b 0.5.x
export AUTOCONF_VERSION=2.69
@gretel
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
gretel / wait_unattended_upgrades.sh
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
View wait_unattended_upgrades.sh
#!/usr/bin/env bash
# https://gist.github.com/gretel/34008d667a8a243a9682e5207619ad95
# 2016 tom hensel <github@jitter.eu>
# `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/wait_unattended_upgrades.sh', args: %w( dpkg apt unattended-upgrade )
#
function wait_procnames {
while true; do
@gretel
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
#ipv6
#verbose
connect-timeout=30
no-sessionid
progress-bar
referer=";auto"
retry-delay=3
retry=2
show-error
user-agent="curl/7.9.8 (i686-pc-linux-gnu) libcurl 7.9.8 (OpenSSL 0.9.6b) (ipv6 enabled)"
@gretel
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
gretel / private.xml
Last active Jun 9, 2016
mappings for my kezboard with capslock mapped to hyper and stuff using karabiner and seil https://pqrs.org/osx/karabiner/xml.html.en https://pqrs.org/osx/karabiner/seil.html.en
View private.xml
<?xml version="1.0"?>
<!-- https://gist.github.com/gretel/b00af6a15724bd839d37a5622474958b -->
<root>
<devicevendordef>
<vendorname>APPLE_COMPUTER</vendorname>
<vendorid>0x05ac</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>MACBOOK_PRO</productname>
<productid>0x0246</productid>
@gretel
gretel / update.fish
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)
View update.fish
# 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 / bootstrap_python.sh
Last active Jun 22, 2016
debian/ubuntu: script ensures `python-2.7` gets installed so `ansible` can be
View bootstrap_python.sh
#!/usr/bin/env sh
# https://gist.github.com/gretel/7a76a3fe1e15a8a8e0c37457d18e795a
# 2016 tom hensel <github@jitter.eu>
# 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/bootstrap_python.sh', args: ['2.7', 'python python-pkg-resources']
#
find_pyver="$1"
if [ -z "$find_pyver" ]; then