Skip to content

Instantly share code, notes, and snippets.

View mhausenblas's full-sized avatar
🤷‍♂️
weeks of coding can save you hours of planning!

Michael Hausenblas mhausenblas

🤷‍♂️
weeks of coding can save you hours of planning!
View GitHub Profile
@philips
philips / users.md
Last active April 5, 2023 14:17
Kubernetes Third-Party Resource Users
@mhausenblas
mhausenblas / README.md
Last active January 8, 2017 02:14
Container images cheat sheet

Cheat sheet: container images

A collection of container images I use for admin tasks or troubleshooting in environments such as CoreOS where quite often the one or other thing is not available or I can't be bothered to install stuff.

Networking

Good old netcat:

$ docker run -it --rm appropriate/nc $IP $PORT
@mhausenblas
mhausenblas / README.md
Last active January 30, 2017 19:50
Installs VAMP 0.9 incl. dependencies on DC/OS 1.8

Install VAMP and dependencies on DC/OS 1.8

Make sure the DC/OS CLI is installed. I'm using httpie here but curl also works ;)

Note that all you'll need locally is install-job.json, a DC/OS Jobs definition. So, to install VAMP 0.9 and dependencies, do the following:

# download the install job
$ http --download https://gist.githubusercontent.com/mhausenblas/bb967625088902874d631eaa502573cb/raw/ece1c702dede66693b4873985ef317c568384436/install-job.json

Why I prefer CLI over UI ?

  • CLI tools are Composable using pipes (great old school example http://www.youtube.com/watch?v=tc4ROCJYbm0&t=5m32s)
  • Great for automation and batch processing
  • Fewer mouse clicks. Can go futher using only keyboard
  • Avoid cluky UIs especially over poor connections
  • I'm insulated from UI changes
  • Easier to debug as they are often more verbose than the UI
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@gkleiman
gkleiman / resident-tasks.md
Last active April 5, 2016 10:34
Resident Tasks tutorial

Using Resident Tasks (Persistent Storage) with Marathon v0.16.0

Requirements

  • Mesos version v0.28.0 or greater.
  • The connection between Mesos and Marathon has to be authenticated.

Setting up Mesos and Marathon

Configuring the Mesos Masters

@sethwebster
sethwebster / GoDaddySSLHAProxy.md
Created December 29, 2015 21:29
Creating a PEM for HaProxy from GoDaddy SSL Certificate

GoDaddy SSL Certificates PEM Creation for HaProxy (Ubuntu 14.04)

1 Acquire your SSL Certificate

Generate your CSR This generates a unique private key, skip this if you already have one.

sudo openssl genrsa -out  etc/ssl/yourdomain.com/yourdomain.com.key 1024

Next generate your CSR (Certificate Signing Request), required by GoDaddy:

@kensipe
kensipe / dcos-topology.png
Last active July 20, 2020 17:00
DCOS Topology
dcos-topology.png
@kensipe
kensipe / myriad-demo.txt
Last active September 30, 2015 18:42
myriad demo
setup: You have a multi-purpose cluster environment used for end user web traffic and in-house analytics. In this example we have 4 running docker instances of nginx hosting our web application fronted by haproxy and 2 small and 2 medium instances of YARN running on Mapr Hadoop with MapRFS.
note: most organizations underutilize their datacenter resources by separating these two concerns. In this demonstration we are co-locating these separate needs.
<setup scripts>
1. look at master port 80 (web app)
- technical dive: look at /etc/haproxy/haproxy.cfg on master
2. lets run a terrasort job
<launch terrasort job>
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.