Skip to content

Instantly share code, notes, and snippets.

\documentclass[letterpaper,10pt,twoside,twocolumn,openany]{book}
\usepackage[bg=none]{dnd}
\usepackage{xtab}
% Normally, @ is not a valid character in macro names. Make the @ symbol a
% normal letter in order to call an internal command from the dnd package.
% See <https://tex.stackexchange.com/a/8353> for more information.
\makeatletter

Keybase proof

I hereby claim:

  • I am benwebber on github.
  • I am benwebber (https://keybase.io/benwebber) on keybase.
  • I have a public key whose fingerprint is 55D0 26AD 8EBB 4A07 E1FE EC65 F334 A78E DC6C 5971

To claim this, I am signing this object:

@benwebber
benwebber / keepassx2csv2pass.py
Last active April 14, 2024 03:56
Import KeePassX 2 CSV into pass
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Import KeePassX 2 CSV into pass.
"""
import argparse
import collections
import csv
@benwebber
benwebber / mailman-sa-learn.py
Created May 22, 2013 22:58
A script to train SpamAssassin's Bayesian classifier using held messages in Mailman.
#!/usr/bin/env python
# This script trains SpamAssassin's Bayesian classifier using the held messages
# from one or more Mailman lists.
#
# After passing the messages to `sa-learn`, the held messages are discarded.
#
# Usage:
#
# $ sudo python mailman-sa-learn.py list1 list2 ...
@benwebber
benwebber / retro.py
Created October 13, 2012 23:04
An 8-bit avatar generator.
#!/usr/bin/env python
"""
An 8-bit avatar generator.
"""
from __future__ import division
import argparse
import hashlib