Docker's Remote API can be secured via TLS and client certificate verification.
First of all you need a few certificates and keys:
- CA certificate
- Server certificate
- Server key
- Client certificate
- Client key
Please go to Enable Docker Remote API with TLS client verification.
{ | |
"Total": 963 | |
} |
Below are many examples of function hoisting behavior in JavaScript. Ones marked as works
successfuly print 'hi!' without errors.
To play around with these examples (recommended) clone them with git and execute them with e.g. node a.js
(I may be using incorrect terms below, please forgive me)
The prep-script.sh
will setup the latest Node and install the latest perf version on your Linux box.
When you want to generate the flame graph, run the following (folder locations taken from install script):
sudo sysctl kernel.kptr_restrict=0
# May also have to do the following:
# (additional reading http://unix.stackexchange.com/questions/14227/do-i-need-root-admin-permissions-to-run-userspace-perf-tool-perf-events-ar )
sudo sysctl kernel.perf_event_paranoid=0
function inception(f) { | |
try { | |
return 'recursion puts the "' + f.name + '" in "' + f(f) + '"'; | |
} catch (e) { | |
return ''; | |
} | |
} |
Bevry Draft Code of Conduct
TLDR: Be a productive member of civilised society, no more, no less.
Results > Character > Identity.
We care only about your character and your results. We discriminate at the individual level, not the group identity level. You can be whatever identity you want, your identity is your thing not ours, identity is meaningless to us.
Libertarian Values.
// source: http://stackoverflow.com/a/11058858 | |
function ab2str(buf) { | |
return String.fromCharCode.apply(null, new Uint16Array(buf)); | |
} |
function makeAtomicOps(ofType) { | |
function makeRMW(opName) { | |
return function(bytes, offset, ptr, value) { | |
return Module['_BinaryenAtomicRMW'](module, Module[opName], bytes, offset, ptr, value, ofType); | |
}; | |
} | |
return { | |
'rmw': { | |
'add': makeRMW('AtomicRMWAdd'), | |
'sub': makeRMW('AtomicRMWSub'), |
'use strict'; | |
/* eslint-disable consistent-this */ | |
let middlewareManagerHash = []; | |
/** | |
* Composes single-argument functions from right to left. The rightmost | |
* function can take multiple arguments as it provides the signature for | |
* the resulting composite function. | |
* |