Skip to content

Instantly share code, notes, and snippets.

View dokterbob's full-sized avatar

Mathijs de Bruin dokterbob

View GitHub Profile
@beshkenadze
beshkenadze / afp.conf
Created December 6, 2012 09:51
Netatalk config for TimeMacine
;/usr/local/etc/afp.conf
; Netatalk 3.x configuration file
;
[Global]
; Global server settings
vol preset = default_for_all_vol
hostname = TimeCapsule
log file = /var/log/netatalk.log
log level = default:info
@jdunck
jdunck / prefixed.py
Created June 4, 2010 13:26 — forked from bkonkle/prefixed.py
A namespacing cache backend for django
import types
from django.conf import settings
from urllib import urlencode
from django.core.cache.backends.base import BaseCache
from django.utils.encoding import smart_str
#future-proofing against any Django upstream additions of new cache methods.
# If we didn't do this, we'd silently use the base class's methods, which wouldn't
# use the prefix as required.
_expected_methods = set(['__contains__', '__init__', 'add', 'close',