Skip to content

Instantly share code, notes, and snippets.

View golderweb's full-sized avatar

Jonathan Golder golderweb

View GitHub Profile
@golderweb
golderweb / autolister.sh
Created June 23, 2014 18:28
Automatic generation of e-mail black- and whitelists for maildrop from mails in specific (IMAP-)folders by "From"-header
#!/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
@golderweb
golderweb / curl-no-ipv6.php
Last active January 21, 2024 19:16
Wordpress (MU-)Plugin: cURL disable IPv6
<?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 / .mailfilter
Last active August 14, 2017 13:01
Code zum Blogpost [maildrop-Fallstricke und was man dagegen tun kann](https://golderweb.de/2017/08/maildrop-fallstricke-und-was-man-dagegen-tun-kann/)
# 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