Skip to content

Instantly share code, notes, and snippets.

Tobi Knaup guenter

Block or report user

Report or block guenter

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
@guenter
guenter / bash-one-liners.md
Created Nov 24, 2019
Bash One-liners to clean up your everday messes
View bash-one-liners.md

Delete all the files after accidentally extracting a tarball and spilling files allover

tar tf oopsie.tgz | xargs rm
View SparkBeakerX_minimal.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@guenter
guenter / HDFS.ipynb
Last active May 21, 2018
Creating Pandas data frames from various file formats stored in HDFS
View HDFS.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Cluster Stats.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Godfather.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@guenter
guenter / README.md
Created Mar 9, 2018
Demo Kubernetes on DC/OS
View README.md

Setup

These instructions are for DC/OS 1.11.0 and Kubernetes package 1.0.0-1.9.3.

Service Accounts

Install the DC/OS Enterprise CLI, then create a keypair and a service account for Kubernetes. Securely store the private key in the DC/OS secrets store.

@guenter
guenter / docker2marathon.py
Created Mar 11, 2016
Generate Marathon JSON from Docker images.
View docker2marathon.py
"""Generate Marathon JSON from Docker images.
Usage:
docker2marathon.py [options] <image>
docker2marathon.py (-h | --help)
Options:
--cpus=<shares> CPU shares for this app [default: 0.5]
--mem=<megabytes> MB of memory for this app [default: 256]
"""
@guenter
guenter / Node-and-Redis.json
Last active Aug 29, 2015
Prepare a cluster started with https://google.mesosphere.com for the Mesos DNS demo
View Node-and-Redis.json
{
"id" : "/mysite",
"apps": [
{
"id": "frontend",
"container": {
"type": "DOCKER",
"docker": {
"image": "superguenter/node-redis-demo",
"network": "HOST"
View velocity.md
@guenter
guenter / clean-github.js
Created Apr 29, 2014
Remove nav elements on github page to clean it up for PDF. Paste in your browser console.
View clean-github.js
$('.file-navigation, .repository-sidebar, .header, .pagehead, .breadcrumb, .commit, .meta, .site-footer').remove(); $('#files, .file').css({"background":"none", "border":"none"}); $('link').removeAttr('media');
You can’t perform that action at this time.