Skip to content

Instantly share code, notes, and snippets.

View michaellihs's full-sized avatar

Michael Lihs michaellihs

View GitHub Profile
@michaellihs
michaellihs / networking-cheat-sheet.md
Created February 5, 2017 13:17
Networking Cheat Sheet
@michaellihs
michaellihs / cfgmgmtcamp2017.md
Last active February 21, 2017 12:43
Summary of cfgmgmtcamp 2017

cfgmgmtcamp 2017

http://cfgmgmtcamp.eu/

Keynote - Is CM a solved problem?

  • Core functionality of CM (templates, files, packages...)
  • Auxiliary tooling (binary storage, credentials management...)
@michaellihs
michaellihs / bosh.md
Last active April 4, 2017 11:43
BOSH Cheat Sheet

BOSH Cheat Sheet

Debugging BOSH

  • bosh instances --ps see all processes / services on all VMs

  • curl https://BOSH_IP:25555/info -key certs/rootCA.key -cacert certs/rootCA.pem -cert certs/director.crt to check whether certificates work for a call to the BOSH director

@michaellihs
michaellihs / git-cheat-sheet.md
Last active April 11, 2017 10:42
Git Cheat Sheet

Git Cheat Sheet

Extracting Repositories from Sub Paths

#!/usr/bin/bash

set -xue
@michaellihs
michaellihs / mv-version-bump.sh
Created April 12, 2017 21:46
Setting Maven artifact in pom.xml with command line tool
mvn versions:set versions:commit -DnewVersion=1.0.0-SNAPSHOT
@michaellihs
michaellihs / go-cheatsheet.md
Last active June 11, 2017 09:24
Go CheatSheet

Go Setup

PATH and Env Vars

Within your .profile

 export PATH=$PATH:/usr/local/go/bin      # add go binaries to PATH

export GOPATH=~/Workspace/go # set root of all your go projects

@michaellihs
michaellihs / gist:3689b0a246d8bfb43176fa32633eb59d
Created October 24, 2017 21:41 — forked from clintel/gist:1155906
Fenced code in bullet lists with GitHub-flavoured MarkDown??

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code
    
@michaellihs
michaellihs / typo3_behat.md
Last active November 3, 2017 15:28
Behat in TYPO3

We have an extension PROJECT_NAME-testing, which holds a composer.json like this:

{
    "name": "punktde/PROJECT_NAME-testing",
    "description" : "punkt.de testing suite for PROJECT_NAME",
    "license": "proprietary",
    "repositories": [
        {
 "type": "git",
@michaellihs
michaellihs / docker-cheat-sheet.md
Last active November 14, 2017 20:17
Docker Cheat Sheet

Wait until container became healthy

until [[ "`docker inspect -f {{.State.Health.Status}} gitlab`" = "healthy" ]]; do
    echo 'waiting for container to be healthy...'
    sleep 5
done