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 hierarchy = { | |
config: { | |
settings: sinon.fake(), | |
log: { | |
info: sinon.fake() | |
} | |
} | |
} | |
verifyPassword(hierarchy) |
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
#!/bin/sh | |
just_the_file_please() { | |
sed -e 's!^[^/]*\(/.*\)$!\1!' | |
} | |
remove_magic() { | |
sed -e 's!__pycache__/!!; s!\.[^.]*\.pyc$!.pyc!' | |
} |
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
<html> | |
<body> | |
<button id="button" onclick="toggleStartStop()"></button> | |
<div style="border:dotted;padding:10px"> | |
<span id="final_span"></span> | |
<span id="interim_span" style="color:grey"></span> | |
</div> | |
<script type="text/javascript"> | |
var recognizing; | |
var recognition = new (window['SpeechRecognition'] || window['webkitSpeechRecognition']) |
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
FROM rust:alpine | |
RUN apk add --no-cache \ | |
bash \ | |
binutils-gold \ | |
ca-certificates \ | |
clang \ | |
curl \ | |
g++ \ | |
git \ |
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
module.exports = { | |
env: { | |
browser: true, | |
commonjs: true, | |
es2020: true, | |
node: true, | |
mocha: true | |
}, | |
extends: [ | |
'eslint:recommended', |
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
// based on https://nodejs.org/en/knowledge/HTTP/servers/how-to-serve-static-files/ | |
const http = require('http'), | |
fs = require('fs') | |
const PORT = process.env.PORT || '8080' | |
function handler(req, res) { | |
const filename = __dirname + req.url | |
let stat |
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
## optional: run the amazon cli container | |
docker run -ti --rm --name amazon-cli \ | |
-v ~/.aws:/root/.aws \ | |
-v ~/.docker:/root/.docker \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
--entrypoint /bin/bash \ | |
amazon/aws-cli | |
## (slow) optional: generate yum repository configuration using an additional tool |
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
controller: | |
kind: DaemonSet | |
ingressClass: XXX-ingress | |
daemonset: | |
useHostPort: true | |
hostPorts: | |
http: 68888 | |
https: null | |
containerPort: | |
http: 68888 |
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
/* DEBUG Grid */ | |
body { | |
position: relative; | |
background: blue; | |
} | |
body:after { | |
background-size: var(--grid-size) var(--grid-size); | |
background-repeat: repeat; | |
background-image: | |
linear-gradient( |
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
FROM node:14.4 | |
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y \ | |
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends -o APT::Install-Suggests=0 -o APT::Install-Recommends=0 \ | |
ca-certificates \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& mkdir -p /app \ | |
&& chown node:node /app | |
ENV NODE_ENV production |