I hereby claim:
- I am kessler on github.
- I am kessler (https://keybase.io/kessler) on keybase.
- I have a public key whose fingerprint is 9EA7 4C2B BB15 5C5F 0941 BA91 25B9 01BB FB32 B3F5
To claim this, I am signing this object:
var el = {} | |
var props = Object.keys(el) | |
propes.forEach(function (p) { | |
el[p] = function(v) { | |
} | |
}) |
function endsWith(str, endsWith) { | |
return str.substr(str.length - endsWith.length) === endsWith | |
} | |
function startsWith(str, startsWith) { | |
return str.substr(0, startsWith.length) === startsWith | |
} |
var cipher1 = crypto.createCipheriv('aes-128-ctr', key, iv) | |
var cipher2 = crypto.createCipheriv('aes-128-ctr', key, iv) | |
var enc = cipher1.update('123abcd', 'utf8', 'hex') | |
enc += cipher1.final('hex') | |
console.log(enc) | |
var dec = cipher2.update(enc, 'hex', 'utf8') |
var expect = require('chai').expect | |
var targetFactory = require('../target') | |
describe('testing targets', function () { | |
var target | |
it('does something sync', function () { | |
expect(target()).to.equal('123') | |
}) | |
echo "[MongoDB] | |
name=MongoDB Repository | |
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 | |
gpgcheck=0 | |
enabled=1" | sudo tee -a /etc/yum.repos.d/mongodb.repo | |
sudo yum install -y mongodb-org-server mongodb-org-shell mongodb-org-tools | |
sudo mkdir /data /log /journal |
I hereby claim:
To claim this, I am signing this object:
Dim ObjWMI, ColSettings, ObjProcessor | |
Dim StrComputer, ObjNetwork | |
Set ObjNetwork = WScript.CreateObject("WScript.Network") | |
StrComputer = Trim(ObjNetwork.ComputerName) | |
Set ObjNetwork = Nothing | |
WScript.Echo VbCrLf & "Computer Name: " & StrComputer | |
WScript.Echo vbNullString | |
Set ObjWMI = GetObject("WINMGMTS:" & "{ImpersonationLevel=Impersonate,AuthenticationLevel=Pkt}!\\" & StrComputer & "\Root\CIMV2") | |
Set ColSettings = ObjWMI.ExecQuery ("SELECT * FROM Win32_Processor") |
// | |
// config.js | |
// | |
var rc = require('rc') | |
// name and defaults | |
module.exports = rc('coolModule', { | |
port: 8080, | |
spec: { | |
dir: 'a/path/to/somewhere', | |
timeout: 5 |
echo "downloading scripts" | |
curl https://gist.githubusercontent.com/kessler/6122814/raw/002f1f919b937fd067a36f1a3b47050e4a3645e4/linux%20net%20settings > netchakra.sh | |
chomd +x netchakra.sh | |
curl https://gist.githubusercontent.com/kessler/5885063/raw/38f201ff740b25782bc04d3af11b4f3823478b4d/install-node > install-node.sh | |
chmod +x install-node.sh | |
curl https://gist.githubusercontent.com/kessler/6412374/raw/7b088bbeaf36ac845a6c2b6950d0e9f4d8d2d6b8/install-zeromq > install-zmq.sh | |
chmod +x install-zmq.sh |
var work = [] | |
function consume() { | |
// consume at most 1 item everu tick | |
// this is not always optimal... | |
var item = work.pop() | |
if (item) | |
consumeImpl(item) |