Skip to content

Instantly share code, notes, and snippets.

View adamwg's full-sized avatar

Adam Wolfe Gordon adamwg

View GitHub Profile
[ 304.295586] pci 0000:05:00.0: [8086:15d3] type 01 class 0x060400
[ 304.295638] pci 0000:05:00.0: enabling Extended Tags
[ 304.295717] pci 0000:05:00.0: supports D1 D2
[ 304.295717] pci 0000:05:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 304.295923] pci 0000:06:00.0: [8086:15d3] type 01 class 0x060400
[ 304.295978] pci 0000:06:00.0: enabling Extended Tags
[ 304.296053] pci 0000:06:00.0: supports D1 D2
[ 304.296053] pci 0000:06:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 304.296152] pci 0000:06:01.0: [8086:15d3] type 01 class 0x060400
[ 304.296207] pci 0000:06:01.0: enabling Extended Tags
#!/usr/bin/env python2.7
import sys
import os.path
import argparse
import httplib2
import icalendar
from oauth2client import tools
from oauth2client.client import flow_from_clientsecrets
from oauth2client.file import Storage
(defun notmuch-show-previous-thread (&optional show-next)
"Move to the previous item in the search results, if any."
(interactive "P")
(let ((parent-buffer notmuch-show-parent-buffer))
(notmuch-kill-this-buffer)
(when parent-buffer
(switch-to-buffer parent-buffer)
(notmuch-search-previous-thread)
(if show-next
(notmuch-search-show-thread)))))
@adamwg
adamwg / torrentdl.py
Created November 18, 2012 19:34
torrentdl.py
#!/usr/bin/env python
import cPickle
import feedparser
import os
import os.path
import re
import subprocess
import socket
@adamwg
adamwg / nmnotify.py
Created March 1, 2012 19:28
inotify for notmuch
# Example: loops monitoring events forever.
#
import pyinotify
from os import system
from time import sleep
def run_nm(notifier):
sleep(1)
system("notmuch new")
return False