Skip to content

Instantly share code, notes, and snippets.

Michael Herman mjhea0

Block or report user

Report or block mjhea0

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
View install-kind.md

Install KiND

Instructions for installing KinD (Kubernetes in Docker) on Mac OS

Go

Start by installing Go, if you don't already have it.

If you’re on a Mac, the quickest way to install Go is with Homebrew:

@mjhea0
mjhea0 / 1_kubernetes_on_macOS.md
Created Sep 16, 2018 — forked from kevin-smets/1_kubernetes_on_macOS.md
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry
View 1_kubernetes_on_macOS.md

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

View dask_example.py
import time
import pandas as pd
import dask.dataframe as ddf
def benchmark(function, repetitions, name):
start = time.time()
function(repetitions)
end = time.time()
View setup-kubernetes-centos-7.md

Install a 3-Node Kubernetes Cluster on Centos 7

This setup uses 3 machines:

  1. Centos7
  2. 100GB HDD
  3. 32 GB RAM
  4. 8 CPU

All Machines

View upload-cypress-to-s3.js
const fs = require('fs');
const path = require('path');
const AWS = require('aws-sdk');
const { BUCKET_NAME, AWS_ACCESS_ID, AWS_SECRET_KEY } = process.env;
// helpers
function uploadToS3(file, name, type) {
View angular_type_error.md
View testdriven-v2.2.md

Hello!

I just finished planning the next edition of the Microservices with Docker, Flask, and React course and am looking for some feedback.

Major changes and updates:

Part Change
1 Replace Flask-Script with Flask-CLI/Click and add both Flask-RESTful and Flask-DebugToolbar
2 Add multistage Docker build for the React app and replace the pushstate server with nginx for the production React Dockerfile
View Dockerfile
# base image
FROM centos:6
# install epel
RUN rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6 \
&& yum install -y epel-release
# install python
RUN yum install -y \
git \
View meetup_blurb.md

Talk:

Intro to Docker + Node.js

This talk will intro you to the concept of containerization and the Docker ecosystem as a whole as well as how to Docker can be used to simplify your Node.js development workflow.


Speaker:

View ducktyping.md

Duck Typing

It doesn't matter if it's a duck as long as it behaves (properties and methods match) like a duck.

class Duck {
  constructor(name) {
    this.name = name
  }
  takeOff() {
You can’t perform that action at this time.