Skip to content

Instantly share code, notes, and snippets.

View tuxknowledge's full-sized avatar

André Raabe tuxknowledge

View GitHub Profile
http://qiita.com/gumob@github/items/09330100c2a32e41715e
@tuxknowledge
tuxknowledge / OSX clean install
Created June 7, 2013 22:59
OSX clean install
Tools
Degrees
Evernote
Sublime2
KeepassX
Dropbox
@tuxknowledge
tuxknowledge / Generate LDAP Password (OpenDJ)
Created May 17, 2013 14:48
Create OpenDJ password hash
#!/usr/bin/env python
import base64, getpass, hashlib, os
salt = os.urandom(8)
print '{SSHA}' + base64.b64encode(hashlib.sha1(getpass.getpass() + salt).digest() + salt)
@tuxknowledge
tuxknowledge / gist:4666985
Last active September 28, 2016 01:22
Notepad++ Helferlein
import fnmatch
import os
src = '<Path>'
pattern = '*.py'
matches = []
for root, dirnames, filenames in os.walk(src):
for filename in fnmatch.filter(filenames, pattern):
matches.append(os.path.join(root, filename))
@tuxknowledge
tuxknowledge / CryptoRandom.cs
Created February 23, 2012 20:54 — forked from niik/CryptoRandom.cs
Buffered CryptoRandom implementation based on Stephen Toub and Shawn Farkas' CryptoRandom
/*
* Original version by Stephen Toub and Shawn Farkas.
* Random pool and thread safety added by Markus Olsson (freakcode.com).
*
* Original source: http://msdn.microsoft.com/en-us/magazine/cc163367.aspx
*
* Some benchmarks (2009-03-18):
*
* Results produced by calling Next() 1 000 000 times on my machine (dual core 3Ghz)
*