Skip to content

Instantly share code, notes, and snippets.

Aug 16 19:42:52 ~/.../muchsync$ git show --summary
commit 43ed0e7649ae46e43e47b3a1140d4b683df05eb9
Author: David Mazieres <dm@uun.org>
Date: Sun Aug 16 16:22:52 2015 -0700
also work around missing fstatat and fdopendir
Aug 16 19:42:57 ~/.../muchsync$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Aug 16 18:18:37 ~/Downloads/.../muchsync-2$ export sqlite3_CFLAGS=-I/usr/local/Cellar/sqlite/3.8.10.1/include
Aug 16 18:18:47 ~/Downloads/.../muchsync-2$ export sqlite3_LIBS="-L/usr/local/Cellar/sqlite/3.8.10.1/lib -lsqlite3"
Aug 16 18:18:52 ~/Downloads/.../muchsync-2$ make clean
test -z "muchsync" || rm -f muchsync
test -z "*~" || rm -f *~
rm -f *.o
Aug 16 18:19:02 ~/Downloads/.../muchsync-2$ ./configure
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
@johnnyutahh
johnnyutahh / gist:d6f6844ff36a05b01ac7
Created July 12, 2015 21:29
notmuch 0.20.2 compile failure on Mac OS 10.9.5: '/Users/haven' hard-coded path
Jul 12 16:18:35 ~/.../notmuch$ git info
## Remote URLs:
origin git://git.notmuchmail.org/git/notmuch (fetch)
origin git://git.notmuchmail.org/git/notmuch (push)
## Remote Branches:
origin/0.3.x
@johnnyutahh
johnnyutahh / notmuch-vs-mu-performance--cmdline-session.txt
Last active August 29, 2015 14:21
notmuch vs mu (maildir-utils) indexing performance
The following tests were run in 2014 (the November timestamps) and 2015
(the March and May timestamps).
After initial email ingest, the following command-line demonstrate the
performance of re-checking the same maildir folders
'notmuch new' = 11-13 seconds (mean 12s)
'mu index' = 170-190 seconds (mean 180s)
Based upon these figures, notmuch offers a 180s / 12s = 15X improvement.
The above presumably represents the most-frequently-executed command for
@johnnyutahh
johnnyutahh / parsedatetime_unittest.py
Last active August 29, 2015 14:21
testing Python library 'parsedatetime', from https://github.com/bear/parsedatetime
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, time, platform, calendar, subprocess as sp
from datetime import date
# from https://github.com/bear/parsedatetime
import parsedatetime as pdt
def print_parsedatetime_test_conversions(natural_langage_dates_list):
cal = pdt.Calendar()
@johnnyutahh
johnnyutahh / gist:2f4db5c755bc032b106b
Created May 1, 2015 15:22
Determine the current checked-out Git branch on Mac OS X, 10.9.5
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.9.5
BuildVersion: 13F1077
$ git checkout 56acc6b75c15f40f2766ca89751ba32648059352
Note: checking out '56acc6b75c15f40f2766ca89751ba32648059352'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
# Copied and modified from http://stackoverflow.com/a/12712362/605356
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtNetwork import *
import logging, sys
LOGVARSTR = "%25s = '%s'"
class QtSingleApplication(QApplication):