Skip to content

Instantly share code, notes, and snippets.

View michaellihs's full-sized avatar

Michael Lihs michaellihs

View GitHub Profile
@michaellihs
michaellihs / bosh.md
Created December 25, 2016 09:23
Resources for BOSH

Debugging

bosh vms
bosh ssh <VM NAME>
sudo su -
vi /var/vcap/bosh/log/current     # see https://github.com/cloudfoundry/bosh/issues/1252
@michaellihs
michaellihs / bosh-concourse.md
Last active March 15, 2019 15:03
Concourse Cheat Sheet

Concourse Cheat Sheet

Collection of Resources for using Concourse CI (for building BOSH releases)

Snippets

Root privileges in build jobs - use privileged: true in task configuration:

@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 / networking-cheat-sheet.md
Created February 5, 2017 13:17
Networking Cheat Sheet
@michaellihs
michaellihs / networking.md
Last active April 24, 2024 10:31
Networking Cheatsheet

Networking Cheat Sheet

Sniff Network Traffic from / to IP

tcpdump -n -i eth0 src SRC_IP  or dst DEST_IP

Create Routes

@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 / 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 / bash-shell-cheatsheet.md
Last active September 15, 2020 10:37
bash / shell cheatsheet

bash / shell Cheat Sheet

Using colors in shell output

RED='\033[0;31m'
NC='\033[0m' # No Color
printf "I ${RED}love${NC} Stack Overflow\n"
@michaellihs
michaellihs / gittags.groovy
Last active August 14, 2022 07:46
Groovy script that returns an array of Git tags with versions
def gitTags = ("git tag").execute()
def tags = gitTags.text.readLines()
.collect { it.split() }
.unique()
.findAll { it =~ /\d+\.\d+\.\d+/ }
tags.reverse(true)
println tags