using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
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
# __ __ | |
# __ ______ ____ ___ ____ _/ /____ ____ ____/ / | |
# / / / / __ \/ __ `__ \/ __ `/ __/ _ \/ __ \/ __ / | |
# / /_/ / /_/ / / / / / / /_/ / /_/ __/ /_/ / /_/ / | |
# \__, /\____/_/ /_/ /_/\__,_/\__/\___/\____/\__,_/ | |
# /____ matthewdavis.io, holla! | |
# | |
FROM node:9.2-alpine | |
ENV GOPATH /go |
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
curl https://api.github.com/users/[username]/repos | jq .[].clone_url | xargs -n 1 git clone |
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
kubectl proxy | |
curl -s http://localhost:8001/logs/kube-apiserver.log > apiserverlogs |
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
sudo add-apt-repository ppa:pi-rho/dev | |
sudo apt-get update | |
sudo apt-get install tmux-next |
An animated 3D bouncy castle created with just HTML and CSS.
A Pen by Matthew Brandon Davis on CodePen.
I hereby claim:
- I am mateothegreat on github.
- I am appsoa (https://keybase.io/appsoa) on keybase.
- I have a public key whose fingerprint is 7AD6 F183 43CD 0F03 DEEF 0A84 ACAB 1382 CA33 764C
To claim this, I am signing this object:
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/bash | |
# | |
# Generates client and server certificates used to enable HTTPS | |
# remote authentication to a Docker daemon. | |
# | |
# See http://docs.docker.com/articles/https/ | |
# | |
# To start the Docker Daemon: | |
# | |
# sudo docker -d \ |
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/bash | |
# Delete all containers | |
docker rm -f $(docker ps -a -q) | |
# Delete all images | |
docker rmi -f $(docker images -q) |
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
# Used to run minikube shortly | |
alias mk="minikube" | |
# Used to run kubectl shortly | |
alias k="kubectl" | |
# Used to get ... | |
alias kg="kubectl get" | |
# Used to get all pods |