Skip to content

Instantly share code, notes, and snippets.

@runiq
runiq / PKGBUILD.diff
Created June 12, 2014 16:55
python2-keyring PKGBUILD diff with keyring2 executable
--- python2-keyring/PKGBUILD 2014-03-27 01:14:38.000000000 +0100
+++ python2-keyring-new/PKGBUILD 2014-06-12 18:48:44.685878925 +0200
@@ -17,6 +17,12 @@
'kdebindings-python2: Kde integration')
md5sums=('7746c545debacf983ec1c01966cacec3')
+prepare() {
+ cd "$srcdir/keyring-$pkgver"
+ # Install executable as keyring2
+ sed -i 's/keyring=keyring\.cli:main/keyring2\=keyring.cli:main/' setup.py
@runiq
runiq / PKGBUILD
Created July 9, 2014 16:39
python2-vdirsyncer 0.2.1 PKGBUILD
# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io>
pkgname=python2-vdirsyncer
_pkgname=vdirsyncer
pkgver=0.2.1
pkgrel=1
pkgdesc="Synchronize CalDAV and CardDAV"
arch=('any')
url="https://github.com/untitaker/vdirsyncer"
license=('MIT')
@runiq
runiq / runiqs .offlineimaprc
Created January 6, 2012 11:48
runiq's offlineimaprc
##################################################
# General definitions
##################################################
[general]
#########
accounts = gm
metadata = ~/.cache/offlineimap
@runiq
runiq / gist:1574317
Created January 7, 2012 09:59
Output of "offlineimap -u basic --info"
OfflineIMAP 6.5.0
Licensed under the GNU GPL v2+ (v2 or any later version)
Remote repository 'googlemail-remote': type 'Gmail'
Host: imap.gmail.com Port: 993 SSL: 1
Establishing connection to imap.gmail.com:993
Server supports ID extension.
Server welcome string: * OK Gimap ready for requests from 87.172.41.183 su16if3524894bkb.47
Server capabilities: ('IMAP4REV1', 'UNSELECT', 'IDLE', 'NAMESPACE', 'QUOTA', 'ID', 'XLIST', 'CHILDREN', 'X-GM-EXT-1', 'UIDPLUS', 'COMPRESS=DEFLATE')
folderfilter= lambda foldername: foldername not in ['[Google Mail]/Alle Nachrichten']
@runiq
runiq / gist:1574333
Created January 7, 2012 10:09
runiq's mail hierarchy
# Actual files omitted, only directories shown
$ ls -1R ~/.mail/gm
Entw&APw-rfe:
cur/
new/
tmp/
Gesendet:
cur/
new/
@runiq
runiq / PKGBUILD
Created January 25, 2012 20:23
PKGBUILD and patch for python3-notify
# Maintainer: Ryan Baumann <titegtnodI> <ti.teg.tnod.I@gmail.com>
# Contributor: Patrice Peterson <runiq at archlinux dot us>
pkgname=python3-notify
_pkgname=py-notify
pkgver=0.3.1
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="Py-notify is a Python package providing tools for implementing Observer programming pattern."
depends=('python3')
@runiq
runiq / dotfiles-filter.lst
Created January 29, 2012 19:18
rsync error with --cvs-exclude
# rsync list for dotfiles backup
# These rules all work as they should
- /.images/*
- /.adobe/
- /.mozilla/firefox/*/Cache*/*
- /.thumbnails/
- /.gvfs
- /.log/backup/*
@runiq
runiq / PKGBUILD
Created May 30, 2012 20:33
mutt-kz-git PKGBUILD with fix-notmuch_database_open fix applied
# Contributor: boyska <piuttosto@logorroici.org>
pkgname=mutt-kz-git
pkgver=20120228
pkgrel=1
pkgdesc="A small but very powerful text-based mail client + integration with notmuch"
url="https://github.com/karelzak/mutt-kz"
arch=(i686 x86_64)
license=('GPL')
depends=('openssl>=0.9.8e' 'gdbm' 'mime-types' 'zlib' 'libsasl' 'gpgme' 'ncurses' 'notmuch')
@runiq
runiq / newick_tree.py
Created September 21, 2012 13:56
Where my gerunds at
import sys
import Queue
class Node(object):
def __init__(self, id, parent=None, dist=0, maxchildren=2):
self.id = id
self.num = 0
self.dist = dist
self.parent = parent
\definesubmol{\gsh}{H_3\chemabove{N}{\scriptstyle\oplus}-[:-30](=[6]COO^{-})-[:30]-[:-30]-[:30](=[2]O)
-[:-30]\chembelow{N}{H}-[:30] (-[2]-[:30]SH)-[:-30](=[6]O)
-[:30]\chemabove{N}{H}-[:-30]-[:30]COO^{\scriptstyle\ominus}}