This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* USAGE: passgen [-u UPPER] [-l LOWER] [-n NUMBER] -s [SPECIAL] -a LENGTH | |
* The approach is take the desired length, and set aside positions in the result | |
* string for the required characters, then fill in the other positions | |
* with random characters | |
*/ | |
#include <stdio.h> | |
#include <sys/time.h> | |
#include <stdlib.h> | |
#include <unistd.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
DB1: redis.createClient(), | |
DB2: redis.createClient(), | |
DB3: redis.createClient(), | |
init: function(next) { | |
var select = redis.RedisClient.prototype.select; | |
require('async').parallel([ | |
select.bind(this.DB1, 1), | |
select.bind(this.DB2, 2), | |
select.bind(this.DB3, 3) |