Skip to content

Instantly share code, notes, and snippets.

View mateothegreat's full-sized avatar
🤘
Building a freak show on kubernetes..

Matthew Davis mateothegreat

🤘
Building a freak show on kubernetes..
View GitHub Profile
@mateothegreat
mateothegreat / Dockerfile
Last active December 28, 2023 08:16
Mounting Google Cloud Storage Bucket inside of Kubernetes Pod
# __ __
# __ ______ ____ ___ ____ _/ /____ ____ ____/ /
# / / / / __ \/ __ `__ \/ __ `/ __/ _ \/ __ \/ __ /
# / /_/ / /_/ / / / / / / /_/ / /_/ __/ /_/ / /_/ /
# \__, /\____/_/ /_/ /_/\__,_/\__/\___/\____/\__,_/
# /____ matthewdavis.io, holla!
#
FROM node:9.2-alpine
ENV GOPATH /go
@mateothegreat
mateothegreat / ultimate-ut-cheat-sheet.md
Created March 14, 2018 06:34 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

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


curl https://api.github.com/users/[username]/repos | jq .[].clone_url | xargs -n 1 git clone
@mateothegreat
mateothegreat / kube-apiserver.log.sh
Created February 21, 2018 10:29
Kubernetes: Get API Server Logs
kubectl proxy
curl -s http://localhost:8001/logs/kube-apiserver.log > apiserverlogs
@mateothegreat
mateothegreat / tmux_ubuntu.sh
Created February 21, 2018 09:18
Install tmux 2.x on Ubuntu
sudo add-apt-repository ppa:pi-rho/dev
sudo apt-get update
sudo apt-get install tmux-next
@mateothegreat
mateothegreat / keybase.md
Created November 28, 2017 18:12
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 November 23, 2017 15:01 — forked from bradrydzewski/generate_docker_cert.sh
Generate trusted CA certificates for running Docker with HTTPS
#!/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 \
@mateothegreat
mateothegreat / docker_remove_images_containers.sh
Created October 17, 2017 09:24
Remove Docker Images & Containers
#!/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 August 31, 2017 19:09 — forked from JulienBreux/aliases.sh
Kubernetes term aliases
# 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