Skip to content

Instantly share code, notes, and snippets.

@cdjhlee
cdjhlee / zeromq_install.sh
Last active August 24, 2021 19:37
install zeromq in ubuntu 14.04
#!/usr/bin/bash
##############################################
#from http://zeromq.org/intro:get-the-software
##############################################
#get zeromq
wget http://download.zeromq.org/zeromq-4.0.5.tar.gz
#unpack tarball package
@cdjhlee
cdjhlee / md5_mod.js
Last active October 19, 2015 08:52
문자열을 MD5로 지져서 나머지 연산하는 거
var crypto = require('crypto');
//문자열을 md5 해시하여 buffer로 리턴한다.
function getMd5Buffer(str) {
var md5sum = crypto.createHash('md5');
return md5sum.update(str).digest();
}
function getLargeMod(buffer, mod) {