Is LMDB a LevelDB Killer?
symas.com3 pointsby Gyy01 comments
import random
import string
import sys
def generate_random(length, simple):
chars = string.printable[:-6] if not simple else string.letters + string.digits
return ''.join(random.sample(chars, 1)[0] for x in range(length))
def username():
return generate_random(length=4, simple=True)
def password(length):
return generate_random(length=length, simple=False)
if __name__ == '__main__':
length = 6
if len(sys.argv) > 1 and sys.argv[1].isdigit():
length = int(sys.argv[1])
for i in range(20):
print username(), password(length)
That was my "free" book recommendation, if you want to buy a "regular" book, then "The Unix Programming Environment" [2] can't be beat. You can find a dirt cheap "low cost edition", or buy it second hand online.
[1] http://rute.2038bug.com/index.html.gz
[2] http://cm.bell-labs.com/cm/cs/upe/