Skip to content

Instantly share code, notes, and snippets.

View mateothegreat's full-sized avatar
🤘
it ain't easy.

Matthew Davis mateothegreat

🤘
it ain't easy.
View GitHub Profile
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
@mateothegreat
mateothegreat / README-Template.md
Created August 15, 2017 20:42 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@mateothegreat
mateothegreat / get_uninstallable_programs.ps1
Created June 15, 2017 13:41
Get list of programs that can be uninstalled automatically.
PS C:\Windows\system32> New-PSDrive -Name Uninstall -PSProvider Registry -Root HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
PS C:\Windows\system32> dir Uninstall: | Get-ItemProperty -Name DisplayName, InstallDate, Publisher, InstallLocation, UninstallString, ModifyPath, EstimatedSize -ErrorAction SilentlyContinue | Sort-Object -Property DisplayName -ErrorAction SilentlyContinue