Skip to content

Instantly share code, notes, and snippets.

Avatar

Jonathan Golder golderweb

View GitHub Profile
@golderweb
golderweb / .mailfilter
Last active Aug 14, 2017
Code zum Blogpost [maildrop-Fallstricke und was man dagegen tun kann](https://golderweb.de/2017/08/maildrop-fallstricke-und-was-man-dagegen-tun-kann/)
View .mailfilter
# mailfilter
# Maildrop filter
#
# This file is just for data integrity, it includes the
# actual mailfilter in file "main"
# If any exception occurs while executing main, this file
# makes sure that the affected mail is not dropped
# DO NOT ADD ANY ADDIDTIONAL CODE OUTSIDE THE EXCEPTION SCOPE
# Catch exceptions in actual filter
@golderweb
golderweb / curl-no-ipv6.php
Last active Jan 3, 2021
Wordpress (MU-)Plugin: cURL disable IPv6
View curl-no-ipv6.php
<?php
/**
* @package curl-no-ipv6
* @version 1.0
* @since 1.0
*/
/*
Plugin Name: cURL no IPv6
Plugin URI: https:
Description: On systems where cURL is compiled with IPv6, Requests to Wordpress Update API will timeout since cURL tries it about 15s. Since the timeout defined by WordPress is 3s/5s/10s this will breake the Updater. This Plugin simply forces cURL to use IPv4 only.
@golderweb
golderweb / autolister.sh
Created Jun 23, 2014
Automatic generation of e-mail black- and whitelists for maildrop from mails in specific (IMAP-)folders by "From"-header
View autolister.sh
#!/bin/bash
#
# Automatic generation of e-mail black- and whitelists for maildrop from mails in specific (IMAP-)folders by "From"-header
#
# For more information see <http://golderweb.de/2014/06/blacklist-fuer-maildrop-halbautomatisch-erstellen/> (German)
#
# Copyright 2014, GOLDERWEB – Jonathan Golder <jonathan@golderweb.de>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License