Skip to content

Instantly share code, notes, and snippets.

@noah
noah / dovecot-maildir-compress.sh
Last active November 30, 2022 09:34 — forked from cs278/dovecot-maildir-compress.sh
Compresses email in maildir format with check for already-compressed files
#!/bin/bash
# Enable zlib in Dovecot alongside automatic writing of new emails in gzipped format
## Convert Existing Emails using process described with the pseudocode here: https://wiki.dovecot.org/Plugins/Zlib
##
##
store=.
compress=bzip2
easterEgg.BadWorder.list={
"4r5e":1,
"5h1t":1,
"5hit":1,
a55:1,
anal:1,
anus:1,
ar5e:1,
arrse:1,
arse:1,
#!/usr/bin/python2
# rtorrent_xmlrpc
# (c) 2011 Roger Que <alerante@bellsouth.net>
# (c) 2013 Noah K. Tilton <lists@tilton.co>
#
# Python module for interacting with rtorrent's XML-RPC interface
# directly over SCGI, instead of through an HTTP server intermediary.
# Inspired by Glenn Washburn's xmlrpc2scgi.py [1], but subclasses the
# built-in xmlrpclib classes so that it is compatible with features
@noah
noah / sshrc
Created July 14, 2011 04:26 — forked from anonymous/sshrc
#!/bin/bash
# /etc/ssh/sshrc
# watchfile
ip=$(echo $SSH_CONNECTION | awk '{print $1}')
reverse=$(dig -x $ip +short)
echo $(date) | mutt -s "ssh login: $USER@$HOSTNAME from $reverse ($ip)" noahktilton@gmail.com
#!/dev/null
# This 'script' is a set of instructions for preparing and bundling an Arch
# Linux AMI for Amazon's EC2. Bits are to be run on three different
# computers, and there is interaction required, so please follow along and
# run commands individually.
# PROTIP: THESE DON'T ACTUALLY WORK. That's why I'm pasting them here,
# attemping to get some input on what I'm doing wrong. When the instructions
# are ready for prime-time, I'll clean them up and post them to my blog. If
# you're really interested, watch for it there: