Skip to content

Instantly share code, notes, and snippets.


wouter bolsterlee wbolster

View GitHub Profile
View traefik-dynamic-security-config.toml
# TLS and other security settings for Traefik.
# At the time of writing (2021-02), this results in
# an A+ rating from Qualys SSL Labs. See
# for details.
# Note: these settings are for the *dynamic* configuration!
wbolster /
Created Oct 4, 2020
Dirty tricks to automatically inject keyword arguments from the caller's scope
Dirty tricks to automatically inject keyword arguments from the caller's scope.
import functools
import inspect
import sys
def auto_inject_kwargs(f):
import collections
class attrify:
def __init__(self, d):
object.__setattr__(self, 'd', d)
def __getattribute__(self, name):
if name == '__dict__':
return object.__getattribute__(self, 'd')
wbolster / piano.png
Last active May 13, 2017
piano keyboard using unicode block drawing characters
wbolster / qualname
Last active Aug 29, 2015
Python module providing a __qualname__ alternative for Python 2
View qualname
Moved to
#!/usr/bin/env python
from __future__ import print_function
# Python 3
from functools import reduce
except ImportError:
# Python 2

Keybase proof

I hereby claim:

  • I am wbolster on github.
  • I am wbolster ( on keybase.
  • I have a public key whose fingerprint is 76E0 AFCD 0A48 33D2 5EB9 F423 FFAF 60EF 8CDD 9583

To claim this, I am signing this object:

wbolster / toggle-grayscale
Created Dec 1, 2014
AppleScript to toggle grayscale display (for Mac OSX 10.10 Yosemite)
View toggle-grayscale
tell application "System Preferences"
set current pane to pane "Accessibility"
end tell
tell application "System Events"
tell process "System Preferences"
click checkbox "Use grayscale" of window 1
end tell
end tell
wbolster /
Created Jun 1, 2012 — forked from srs81/
Python code to test HappyBase library (HBase), and counter and put speeds
#!/usr/bin/env python
import logging
import random
import time
import happybase
logger = logging.getLogger()