This file contains hidden or 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
echo "create user key" | |
openssl genrsa -out user.key 2048 | |
echo "create certificate request" | |
openssl req -new -key user.key -out user.csr -subj "/CN=kube-user/O=system:masters" | |
echo "apply certificate siging request on k8s cluster" | |
cat <<EOF | kubectl apply -f - | |
apiVersion: certificates.k8s.io/v1beta1 | |
kind: CertificateSigningRequest |
This file contains hidden or 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
const ReactDOMServer = require('react-dom/server'); | |
const render = (reactComponent) => { | |
return new Promise((resolve, reject) => { | |
const body = []; | |
const bodyStream = ReactDOMServer.renderToNodeStream(reactComponent); | |
bodyStream.on('data', (chunk) => { | |
body.push(chunk.toString()); | |
}); | |
bodyStream.on('error', (err) => { |
This file contains hidden or 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
border: no | |
height: 600 | |
license: gpl-3.0 | |
redirect: https://beta.observablehq.com/@mbostock/d3-treemap |
This file contains hidden or 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
license: gpl-3.0 | |
height: 500 | |
border: no |