Skip to content

Instantly share code, notes, and snippets.

Kazuo Teramoto kazuoteramoto

View GitHub Profile
View PKGBUILD
# Generated by tllocalmgr
pkgname=texlive-local-biblatex
pkgver=23324
pkgrel=1
pkgdesc="TeX Live - local installation of CTAN package biblatex"
license=('GPL')
arch=('any')
depends=('texlive-core')
conflicts=('texlive-bibtexextra>=2011.23324')
url='http://tug.org/texlive/'
View PKGBUILD
# Generated by tllocalmgr
pkgname=texlive-local-biblatex
pkgver=24596
pkgrel=1
pkgdesc="TeX Live - local installation of CTAN package biblatex"
license=('GPL')
arch=('any')
depends=('texlive-core')
conflicts=('texlive-bibtexextra>=2011.24596')
url='http://tug.org/texlive/'
View gist:1427423
diff --git a/alot/init.py b/alot/init.py
index 16d4d87..c924443 100755
--- a/alot/init.py
+++ b/alot/init.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
import sys
import argparse
import logging
@kazuoteramoto
kazuoteramoto / gist:1427436
Created Dec 3, 2011
notmuch after makepkg
View gist:1427436
diff --git a/bindings/python/notmuch.py b/bindings/python/notmuch.py
index 8d11859..b0f0e25 100755
--- a/bindings/python/notmuch.py
+++ b/bindings/python/notmuch.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
"""This is a notmuch implementation in python.
It's goal is to allow running the test suite on the cnotmuch python bindings.
View alot.log
DEBUG:root:mode:global got commandline "search tag:inbox AND NOT tag:killed"
DEBUG:root:ARGS: [u'search', u'tag:inbox', u'AND', u'NOT', u'tag:killed']
DEBUG:root:PARMS: {'query': [u'tag:inbox', u'AND', u'NOT', u'tag:killed']}
DEBUG:root:cmd parms {'query': [u'tag:inbox', u'AND', u'NOT', u'tag:killed'], 'prehook': None, 'posthook': None}
INFO:root:setup gui in 256 colours
DEBUG:root:fire first command
DEBUG:root:apply command: <alot.commands.globals.SearchCommand object at 0x2e1bc90>
DEBUG:root:EMPTY PIPE
DEBUG:root:mode:search got commandline "exit"
DEBUG:root:ARGS: [u'exit']
View alot.log
DEBUG:root:mode:global got commandline "search tag:inbox AND NOT tag:killed"
DEBUG:root:ARGS: [u'search', u'tag:inbox', u'AND', u'NOT', u'tag:killed']
DEBUG:root:PARMS: {'query': [u'tag:inbox', u'AND', u'NOT', u'tag:killed']}
DEBUG:root:cmd parms {'query': [u'tag:inbox', u'AND', u'NOT', u'tag:killed'], 'prehook': None, 'posthook': None}
INFO:root:setup gui in 256 colours
DEBUG:root:fire first command
DEBUG:root:apply command: <alot.commands.globals.SearchCommand object at 0x2e1bc90>
DEBUG:root:EMPTY PIPE
DEBUG:root:mode:search got commandline "exit"
DEBUG:root:ARGS: [u'exit']
View test_notmuch.py
#!/usr/bin/env python2
import notmuch
db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)
q_new = notmuch.Query(db, 'tag:inbox')
for t in q_new.search_threads():
pass
View notmuch_gdb_bt.txt
$ gdb --args python2
GNU gdb (GDB) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
View moveast.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import fontforge, psMat
from sys import argv
# ./moveast.py *.ttf
for filename in argv[1:]:
font = fontforge.open(filename)
View gist:1517368
GNU gdb (GDB) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python2...(no debugging symbols found)...done.
You can’t perform that action at this time.