Skip to content

Instantly share code, notes, and snippets.

View witsch's full-sized avatar
💭
204 No Content

Andreas Zeidler witsch

💭
204 No Content
View GitHub Profile
@witsch
witsch / buildout.cfg
Last active December 19, 2019 16:45
Patch for "posixGroup" support in `Products.LDAPUserFolder` 2.26 based on http://davidjb.com/blog/2010/06/plonezope-using-ldapuserfolder-with-posixgroups/
[buildout]
...
parts =
...
patches
...
[patches]
recipe = collective.recipe.patch
@witsch
witsch / ldap-posixGroup-support.patch
Last active November 29, 2016 13:55
posixGroups support for Plone/Zope's `Products.LDAPUserFolder` (2.27)
diff --git a/Products/LDAPUserFolder/LDAPUserFolder.py b/Products/LDAPUserFolder/LDAPUserFolder.py
index 8402da3..60f9634 100644
--- Products/LDAPUserFolder/LDAPUserFolder.py
+++ Products/LDAPUserFolder/LDAPUserFolder.py
@@ -19,6 +19,7 @@ $Id$
import logging
import os
import random
+import re
try:
@witsch
witsch / homebrew-migration.sh
Created January 11, 2017 20:50
Shell script to migrate symlinks created by Homebrew (see https://github.com/caskroom/homebrew-cask/issues/21913)
#!/bin/bash
which gfind || brew install findutils
gfind ~/Applications/ ~/Library/ /usr/local/ -type l -lname '/opt/homebrew-cask/*' -printf "ln -vsf '%l' '%p'\n" |\
sed s,/opt/homebrew-cask/,/usr/local/, |\
bash
@witsch
witsch / rpi-busybox-httpd-stack.yaml
Created March 30, 2020 15:07
docker stack configuraion for hypriot/rpi-busybox-httpd
version: "3.7"
services:
hello:
image: hypriot/rpi-busybox-httpd
ports:
- "4000:80"
deploy:
replicas: 1
restart_policy:
@witsch
witsch / plugins.yaml
Last active March 23, 2024 17:41
start debugger pod from `k9s`
plugins:
debug:
shortCut: Shift-D
description: kubectl debug
scopes:
- pods
command: bash
background: false
args:
- -c