Skip to content

Instantly share code, notes, and snippets.

🤘
it ain't easy.

Matthew Davis mateothegreat

🤘
it ain't easy.
Block or report user

Report or block mateothegreat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mateothegreat
mateothegreat / Dockerfile
Last active Mar 27, 2018
Mounting Google Cloud Storage Bucket inside of Kubernetes Pod
View Dockerfile
# __ __
# __ ______ ____ ___ ____ _/ /____ ____ ____/ /
# / / / / __ \/ __ `__ \/ __ `/ __/ _ \/ __ \/ __ /
# / /_/ / /_/ / / / / / / /_/ / /_/ __/ /_/ / /_/ /
# \__, /\____/_/ /_/ /_/\__,_/\__/\___/\____/\__,_/
# /____ matthewdavis.io, holla!
#
FROM node:9.2-alpine
ENV GOPATH /go
@mateothegreat
mateothegreat / ultimate-ut-cheat-sheet.md
Created Mar 14, 2018 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon
View ultimate-ut-cheat-sheet.md

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies


View clone_repos.sh
curl https://api.github.com/users/[username]/repos | jq .[].clone_url | xargs -n 1 git clone
@mateothegreat
mateothegreat / kube-apiserver.log.sh
Created Feb 21, 2018
Kubernetes: Get API Server Logs
View kube-apiserver.log.sh
kubectl proxy
curl -s http://localhost:8001/logs/kube-apiserver.log > apiserverlogs
@mateothegreat
mateothegreat / tmux_ubuntu.sh
Created Feb 21, 2018
Install tmux 2.x on Ubuntu
View tmux_ubuntu.sh
sudo add-apt-repository ppa:pi-rho/dev
sudo apt-get update
sudo apt-get install tmux-next
View css-3d-bouncy-castle.markdown
View keybase.md

Keybase proof

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:

@mateothegreat
mateothegreat / generate_docker_cert.sh
Created Nov 23, 2017 — forked from bradrydzewski/generate_docker_cert.sh
Generate trusted CA certificates for running Docker with HTTPS
View generate_docker_cert.sh
#!/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 \
View docker_remove_images_containers.sh
#!/bin/bash
# Delete all containers
docker rm -f $(docker ps -a -q)
# Delete all images
docker rmi -f $(docker images -q)
@mateothegreat
mateothegreat / aliases.sh
Created Aug 31, 2017 — forked from JulienBreux/aliases.sh
Kubernetes term aliases
View aliases.sh
# 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
You can’t perform that action at this time.