Skip to content

Instantly share code, notes, and snippets.

View teki's full-sized avatar

Bela Babik teki

View GitHub Profile
@teki
teki / vimrc
Last active December 29, 2015 14:59
set nocompatible
" load plugins if they are available
let s:myvimrc = expand("~/myenv/vim_local/vimrc")
let s:hasplugins = filereadable(s:myvimrc)
if s:hasplugins
set runtimepath=~/myenv/vim_local,$VIMRUNTIME
filetype on
filetype off
@teki
teki / gist:5189
Created August 13, 2008 03:11
websvn rss guid permalink fix
Index: include/feedcreator.class.php
===================================================================
--- include/feedcreator.class.php (revision 635)
+++ include/feedcreator.class.php (working copy)
@@ -325,6 +325,7 @@
Index: include/feedcreator.class.php
===================================================================
--- include/feedcreator.class.php (revision 635)
+++ include/feedcreator.class.php (working copy)
@@ -325,6 +325,7 @@
@teki
teki / gist:4967
Created August 11, 2008 23:28
reviewboard midified LDAP backend
class LDAPBackend:
"""
Authenticate against a user on an LDAP server.
"""
def authenticate(self, username, password):
try:
import ldap
ldapo = ldap.initialize(settings.LDAP_URI)
ldapo.set_option(ldap.OPT_PROTOCOL_VERSION, 3)