Skip to content

Instantly share code, notes, and snippets.

View zerwes's full-sized avatar
🤯
I may be slow to respond.

Klaus Zerwes zerwes

🤯
I may be slow to respond.
View GitHub Profile
@zerwes
zerwes / demoWG+VXLAN.md
Last active May 12, 2024 04:18 — forked from pamolloy/README.md
Mesh network using VXLAN over Wireguard
@zerwes
zerwes / RT_SiteConfig.pm
Last active December 1, 2023 11:16 — forked from trev71/RT_SiteConfig.pm
Best Practical Request Tracker (RT) LDAP User Import and Authentication RT_SiteConfig.pm
# Any configuration directives you include here will override
# RT's default configuration file, RT_Config.pm
#
# To include a directive here, just copy the equivalent statement
# from RT_Config.pm and change the value. We've included a single
# sample value below.
#
# This file is actually a perl module, so you can include valid
# perl code, as well.
#
@zerwes
zerwes / gitcheats.txt
Created November 21, 2022 19:03 — forked from mkhairi/gitcheats.txt
git cheats
# shortform git commands
alias g='git'
# push changes to an empty git repository for the first time
git push --set-upstream origin master
# Remove + and - from start of diff lines
git diff --color | sed "s/^\([^-+ ]*\)[-+ ]/\\1/" | less -r
# clear out git hooks

Horizontal Tab Menu Slider v0.2

Responsive Horizontal Tab Menu Slider with left and right arrow key navigation. Built with Stylus and jQuery.

Show case your content with this easy to implement presentation.

A Pen by Ettrics on CodePen.

License.

@zerwes
zerwes / rspamd.local.lua
Created May 11, 2022 03:05
Rspamd: Simple per user Whitelist / Blacklist
-- When using Whitelist and Blacklist last result wins!
-- So maybe redis latency will decide ;)
rspamd_config.PER_USER_WL = {
-- CAUTION: This will whitelist the mail for every recipient when there is
-- match for any recipient
-- ADD a WL entry with: SADD RS_UWL_recipient@address.com sender@example.net
-- This function searches redis like this:
-- "SSCAN" "RS_UWL_recipient@address.com" "0" "MATCH" "sender@example.net"
@zerwes
zerwes / haproxy.cfg
Created January 19, 2022 15:27 — forked from jriguera/haproxy.cfg
Haproxy for Multimaster MySQL cluster
#---------------------------------------------------------------------
# Global settings
#---------------------------------------------------------------------
global
# to have these messages end up in /var/log/haproxy.log you will
# need to:
#
# 1) configure syslog to accept network log events. This is done
# by adding the '-r' option to the SYSLOGD_OPTIONS in
# /etc/sysconfig/syslog
@zerwes
zerwes / gnome-terminal-profiles.adoc
Created October 16, 2019 08:32
Export / Import Gnome Terminal Profiles

Export Gnome Terminal Profile

List profiles

dconf dump /org/gnome/terminal/legacy/profiles:/

Determine the terminal profile string for the profile you will need. This is the terminal profile that I will export:

@zerwes
zerwes / gist:b725b977b828c75736adf613dae695e8
Created March 14, 2018 13:16 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@zerwes
zerwes / ipsec.pl
Created January 4, 2018 12:48 — forked from rlsit/ipsec.pl
sophos SG restart stalled ipsec tunnels
#! /usr/bin/perl -w
use strict;
use warnings;
use Astaro::ConfdPlRPC;
use Data::Dumper;
use Try::Tiny;
my $restartall = 0;