Skip to content

Instantly share code, notes, and snippets.

View mboersma's full-sized avatar

Matt Boersma mboersma

  • Boulder, CO
  • 11:21 (UTC -06:00)
View GitHub Profile
@mboersma
mboersma / text_progress.py
Last active December 20, 2015 18:29
A simple, threaded ASCII progress animation class.
"""
Show (indeterminate) progress by animating ASCII chars on stdout.
"""
from itertools import cycle
from sys import stdout
from threading import Event
from threading import Thread
from time import sleep
#!/usr/bin/env bash
source ~/venv/bin/activate
deis register http://local.deisapp.com:8000 --username=bacongobbler --email=mmm@bacon.com --password=qwerty
deis login http://local.deisapp.com:8000 --username=bacongobbler --password=qwerty
deis keys:add ~/.ssh/id_rsa.pub
deis init dev local.deisapp.com --hosts=local.deisapp.com --auth=~/.vagrant.d/insecure_private_key
@rimusz
rimusz / preemtible_kubernetes.md
Last active July 7, 2018 02:52 — forked from tsuri/preemtible_kubernetes.md
kubernetes cluster w/ pre-emptible instances

Kubernetes clusters using preemtible instances

Motivation

People experimenting with kubernetes clusters on the GKE not necessarily have money to keep a full cluster on at all time. GKE clusters can be easily resized, but this still incurs in the full instance cost when the cluster is up.

Google has added preemptible instances that are ideal for many