Skip to content

Instantly share code, notes, and snippets.

View darac's full-sized avatar

Paul Saunders darac

View GitHub Profile
@darac
darac / mailinglist.sieve
Last active July 3, 2023 13:59
Sieve filters for automatic mailinglist identification
# I can't remember where I originally got this from, but it's worked for me for > 10 years
# The concept here is that we try to extract the "List ID" from a message,
# this is then lower-cased (for consistency), and the message is sent to a mailbox
# named after the mailinglist.
require [ "regex", "variables", "fileinto", "envelope", "mailbox", "imap4flags" ];
# Mailinglist Killfile
if anyof (header :contains "from" "spammer@example.com",
header :contains "from" "anotherone@example.net"){
@darac
darac / bug-report-24.theme
Created May 26, 2017 10:13
Minimal version of solarized-powerline theme in 24-bit colour mode
# Minimal Theme for Bug Report
default_color = "-1";
abstracts = {
##
## SOLARIZED COLOURS
##
#
# Foreground Bases (allowing for continuation)
solf_base03_ = "%Z002b36$0-";
solf_base02_ = "%Z073642$0-";
@darac
darac / bug-report.theme
Created May 26, 2017 10:07
Minimal version of Solarized-Powerline theme in 16-colour mode
# Minimal Theme for Bug Report
default_color = "-1";
abstracts = {
##
## SOLARIZED COLOURS
##
#
# Foreground Bases (allowing for continuation)
solf_base03_ = "%K$0-";
solf_base02_ = "%k$0-";

Keybase proof

I hereby claim:

  • I am darac on github.
  • I am darac (https://keybase.io/darac) on keybase.
  • I have a public key whose fingerprint is 689D 9753 FE50 6B09 2C1E 352A E6E9 E425 48C9 12E7

To claim this, I am signing this object:

@darac
darac / dhcp-event.py
Created June 13, 2012 13:01 — forked from tomoconnor/dhcp-event
Thingy for updating powerdns backend when stuff changes
#!/usr/bin/env python
import MySQLdb
import syslog
import sys
import pprint
pp = pprint.PrettyPrinter()
mysql_host = "localhost"
mysql_user = "dbusername"
mysql_pass = "dbpassword"