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

install kubernetes 1.6 on centos 7.3

Install kubelet, kubeadm, docker, kubectl and kubernetes-cni

1. Install Yum Repo

cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=http://yum.kubernetes.io/repos/kubernetes-el7-x86_64
@mateothegreat
mateothegreat / .block
Created May 5, 2017 06:56 — forked from mbostock/.block
Radial Tidy Tree
license: gpl-3.0
border: no
height: 1060
@mateothegreat
mateothegreat / aws
Created March 4, 2017 03:00 — forked from QaDeS/aws
Grok patterns to parse AWS access logs
IAMUSERID %{NUMBER:iam_user_id}
IAMUSERNAME [a-zA-Z0-9._-]+
IAMUSER arn:aws:iam::%{IAMUSERID}:user/%{IAMUSERNAME:iam_user_name}
S3TYPE (?:OBJECT)
S3OP [a-zA-z]+
S3SOAPOPERATION (?:SOAP\.%{S3OP})
S3RESTOPERATION (?:REST\.%{S3OP}\.%{S3TYPE})
S3WEBSITEOPERATION (?:WEBSITE\.%{S3OP}\.%{S3TYPE})
S3OPERATION (?:%{S3SOAPOPERATION}|%{S3RESTOPERATION}|%{S3WEBSITEOPERATION})
@mateothegreat
mateothegreat / c9.sh
Created January 28, 2017 08:06
Prepare CentOS for Cloud9 ("c9") remote ssh workspace
# Prepare dependencies
sudo yum -y groupinstall "Development Tools" && \
sudo yum -y install ncurses-devel \
glibc-static &&
# Install Node Version Manager ("nvm")
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash &&
# Install node.js
nvm install v6.9.4 &&
@mateothegreat
mateothegreat / Snippets for Docker.md
Last active July 15, 2016 17:18
Dockerfile & docker-compose.yml Snippets

Dockerfile & docker-compose.yml Snippets

Define your app’s environment with a Dockerfile so it can be reproduced anywhere.

####Build, Ship, Run. An open platform for distributed applications for developers and sysadmins.

Define the services that make up your app in docker-compose.yml so they can be run together in an isolated environment. Lastly, run docker-compose up and Compose will start and run your entire app. -https://docs.docker.com/compose

@mateothegreat
mateothegreat / github.api.gists.create.example
Created July 3, 2016 16:43
Demo using bash and cURL to create a gist with several files.
Book: <..>
Title: Show by example
Author: Matthew Davis <matthew@appsoa.io>