Skip to content

Instantly share code, notes, and snippets.

View guenter's full-sized avatar

Tobi Knaup guenter

View GitHub Profile
@guenter
guenter / smb.conf
Created September 18, 2024 00:37
Configure Samba and Avahi on a Linux server to use as a Time Machine for macOS clients.
[global]
## General
server role = standalone server
workgroup = WORKGROUP
server smb encrypt = desired
## Logging
logging = file
log file = /var/log/samba/log.%m
log level = 2
@guenter
guenter / bash-one-liners.md
Created November 24, 2019 06:39
Bash One-liners to clean up your everday messes

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

tar tf oopsie.tgz | xargs rm
Loading
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 21:00
Creating Pandas data frames from various file formats stored in HDFS
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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 March 9, 2018 17:25
Demo Kubernetes on DC/OS

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 March 11, 2016 04:53
Generate Marathon JSON from Docker images.
"""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 August 29, 2015 14:13
Prepare a cluster started with https://google.mesosphere.com for the Mesos DNS demo
{
"id" : "/mysite",
"apps": [
{
"id": "frontend",
"container": {
"type": "DOCKER",
"docker": {
"image": "superguenter/node-redis-demo",
"network": "HOST"
@guenter
guenter / velocity.md
Created September 15, 2014 19:24
velocity