Skip to content

Instantly share code, notes, and snippets.

May-06 20
Jun-06 18
Jul-06 9
Aug-06 28
Sep-06 43
Oct-06 14
Nov-06 22
Dec-06 14
Jan-07 29
Feb-07 39
@adamamyl
adamamyl / gist:4e16931b1c41be0ed906
Created February 17, 2016 16:30
get gpg keys for people in an addressbook dump (where the email address is the last field)
awk '{print $NF}' addressbook.csv | head | while read L; do gpg --keyserver pgp.mit.edu --search-keys ${L}; done

Keybase proof

I hereby claim:

  • I am adamamyl on github.
  • I am adamamyl (https://keybase.io/adamamyl) on keybase.
  • I have a public key whose fingerprint is F342 2EB6 5394 A8B5 0C3A 6EC4 B20F 50D4 855B 3066

To claim this, I am signing this object:

#!/bin/bash
#
# allow-ssh-host:
#
# Copyright (c) 2016 root. All rights reserved.
#
#
# $Id:$
#
@adamamyl
adamamyl / haproxy.cfg
Created January 4, 2016 17:37
HAProxy config for load-balancing Mailman SMTP
listen smtp :2525
mode tcp
option tcplog
balance roundrobin
# Use the local address to avoid having to change exim configs
# config for woolf (=lists.no2id.net)
server woolf 127.0.0.1:25 check weight 10
server bingham 93.93.131.141:25 check weight 10
@adamamyl
adamamyl / mailman.cfg
Created January 4, 2016 17:36
Stanzas for HAProxy'ing SMTP
# Route via HAProxy
SMTPHOST = 'localhost'
SMTPPORT = 2525 # default from smtplib
#!/bin/bash
#
# diskcheck-on-reboot:
#
# Copyright (c) 2012 root. All rights reserved.
#
#
# $Id$
#
@adamamyl
adamamyl / gist:e6f4c2d15a493da0de10
Last active October 5, 2015 12:46
Bring back press-hold accented letters
# nabbed from http://osxdaily.com/2011/08/04/enable-key-repeat-mac-os-x-lion/
defaults write -g ApplePressAndHoldEnabled -bool true