Skip to content

Instantly share code, notes, and snippets.

View dandrzejewski's full-sized avatar

David Andrzejewski dandrzejewski

View GitHub Profile
dandrzejewski / ip_firewall_filter.rsc
Created February 26, 2022 06:40 — forked from SmartFinn/ip_firewall_filter.rsc
MikroTik (RouterOS) Zone-Based Firewall Example
# jan/29/2018 22: 4:17 by RouterOS 6.41
/interface list
add name=public comment="public network"
add name=local comment="local network"
add name=guest comment="guest network"
# Change the interfaces below to your own
/interface list member
add list=public interface=ether1
* Plugin Name: Multisite: Passwort Reset on Local Blog
* Plugin URI:
* Description: By default, WordPress Multisite uses the main blog for passwort resets. This plugin enables users to stay in their blog during the whole reset process.
* Version: 1.0.0
* Author: Eric Teubert
* Author URI:
* License: MIT
dandrzejewski /
Created November 28, 2020 01:39 — forked from SmartFinn/
a script for converting domain names to DHCP Option 119 (Domain Search Option)
#!/usr/bin/env python3
"""Command generator for setting DHCP Option 119
This script converts the specified domain names to DHCP Option 119
(Domain Search Option) and prints commands for various DHCP servers.
./ DOMAIN ...
dandrzejewski /
Created August 6, 2020 21:56 — forked from andrezrv/
Purge all Varnish cache.
# Purge all Varnish cache
varnishadm "ban req.url ~ /"
dandrzejewski /
Last active April 14, 2020 14:55
A shell script to update radio and peer IDs in a cBridge, using's CSV files.
#Written by NF9K on 5/23/2019
#Work in progress
# Modified by AD8G to strip newlines at the end of the csv files.
# To use, create a file called "vars" in the same directory as this script.
# Place two variables in it - USERNAME and PASSWORD - these are the credentials

Keybase proof

I hereby claim:

  • I am dandrzejewski on github.
  • I am dandrzejewski ( on keybase.
  • I have a public key ASAafav_NDwfRuLrNWiNUHTBVwcQGNze_VGJCx9alxiL6Qo

To claim this, I am signing this object:

dandrzejewski / homebridge
Created January 1, 2018 21:05 — forked from johannrichard/homebridge
Systemd Service for homebridge (
# Defaults / Configuration options for homebridge
# The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others)
HOMEBRIDGE_OPTS=-U /var/lib/homebridge
# If you uncomment the following line, homebridge will log more
# You can display this via systemd's journalctl: journalctl -f -u homebridge
dandrzejewski / regenerate_custodia_keys
Last active December 15, 2017 19:56
Regenerate custodia keys in freeipa. Helps solve the 406 decryption failed error when running ipa-replica-install
#!/usr/bin/env python
"""Regenerate Custodia server.keys and config
Christian Heimes <>
import argparse
import os
from ipalib import api
from ipaplatform.paths import paths
# disable secure boot in the bios, in menu security
# downlad and unzip
# install refind, assuming your ESP partition is /dev/sda1 and mounted in /boot/efi
cd refind-bin-0.7.8
# type y and go ahead
# at that time your boot entry should look like that
dandrzejewski / python_custom_openssl.diff
Created December 21, 2016 16:42 — forked from eddy-geek/ python_custom_openssl.diff
Compile python with statically linked openssl
--- a/ 2014-03-17 03:31:31.000000000 +0100
+++ b/ 2014-03-17 19:06:03.000000000 +0100
@@ -750,10 +750,8 @@
exts.append( Extension('_socket', ['socketmodule.c'],
depends = ['socketmodule.h']) )
# Detect SSL support for the socket module (via _ssl)
- search_for_ssl_incs_in = [
- '/usr/local/ssl/include',
- '/usr/contrib/ssl/include/'
- ]