Skip to content

Instantly share code, notes, and snippets.

lothar schulz lotharschulz

Block or report user

Report or block lotharschulz

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
@lotharschulz
lotharschulz / lotharschulz-hellogo:build.docker-cache–0.2.91 CVEs
Created Oct 5, 2018
lotharschulz/hellogo:build.docker-cache–0.2.91 CVEs identified with Clair and klar
View lotharschulz-hellogo:build.docker-cache–0.2.91 CVEs
╔════════╦══════════════════════════════╦═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ CVE ║ Found in ║
@lotharschulz
lotharschulz / docker images build, push, pull time
Created Oct 5, 2018
Docker base image sizes & push and pull times as of circleCi hellogodocker build 91
View docker images build, push, pull time
╔═════════════════════════════╦════════════════════════════╦═════════════════════════════════════════╦════════════════════════╦════════════╦═══════════════════════╦═══════════════════════════════════╦═════════════════════════════════════╗
║ base image ║ Docker build category ║ command ║ image build (circleCI) ║ image size ║ image size compressed ║ push to Dockerhub (from circleCI) ║ pull from Dockerhub (from circleCI) ║
╠═════════════════════════════╬════════════════════════════╬═════════════════════════════════════════╬════════════════════════╬════════════╬═══════════════════════╬═══════════════════════════════════╬═════════════════════════════════════╣
║ golang:1.11 ║ default ║ docker build ║ 3.025s ║ 783 MB ║ 299 MB ║ 4.618s ║ 21.271s ║
║ golang:1.11 ║ default ║ docker
@lotharschulz
lotharschulz / numberString2individualCharacters.kt
Last active Aug 5, 2018
Kotlin: sample code that converts individual characters of a string to Integers
View numberString2individualCharacters.kt
fun main(args: Array<String>) {
val someText = "ABC1234567890"
for (i in (0 .. (someText.length-1))){
println(" number[$i]: ${someText[i]}")
println("(number[$i] is Char): ${(someText[i] is Char)}")
/* toInt return ascii dev code of a Character,
_not_ the Character as Int in case of numbers */
println(" number[$i].toInt(): ${someText[i].toInt()}")
println(" number[$i].toString().toIntOrNull(): " +
"${someText[i].toString().toIntOrNull()}")
@lotharschulz
lotharschulz / lightroom_favourite_shortcuts.md
Last active Jul 21, 2018
my lightroom favourite shortcuts
View lightroom_favourite_shortcuts.md

my favourite lightroom shortcuts (mac)

  • dev module

    • previous button

      alt + cmd + v

    • sync button

View kubeflow deployment
# http://www.lotharschulz.info/2018/05/06/kubeflow-jupyter-notebook-on-kubernetes
# Create a namespace for kubeflow deployment
NAMESPACE=kubeflow
# start kubernetes cluster using minikube
minikube start
# create the kubeflow namespace
kubectl create namespace ${NAMESPACE}
# ksonnet package versions
VERSION=v0.1.3
View aboutme
name: Lothar Schulz
mail: mail@lotharschulz.info
work: REACH NOW (Daimler/BMW)
location: Berlin
site: https://www.lotharschulz.info
github: https://github.com/lotharschulz
linkedin: https://www.linkedin.com/in/lotharschulz/
twitter: https://twitter.com/lothar_schulz
xing: https://www.xing.com/profile/Lothar_Schulz
slide decks: https://speakerdeck.com/lothar/
View minikube loadbalancer and ingress
# https://github.com/lotharschulz/akkahttp-playground/releases/tag/0.0.6-minikube-lb-ing-presentation-leipzig
# prerequsites: scala, sbt, docker, minikube, kubectl, local registry, project's docker images in local registry
kubectl create -f minikube-deployment-config.yaml
kubectl expose deployment akkahttpplayground-deployment --type="LoadBalancer" --port=8181 -target-port=8181
minikube service akkahttpplayground-deployment # opens browser window
minikube addons enable ingress
kubectl create -f minikube-ingress.yaml
echo "$(minikube ip) myminikube.info" | sudo tee -a /etc/hosts
# check the service
View ghe-backup-kms-policy-sample
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1441892073456",
"Effect": "Allow",
"Action": [
"kms:Decrypt"
],
"Resource": [
@lotharschulz
lotharschulz / ghe-backup-senza-yaml
Created Feb 22, 2016
ghe backup sample senza.yaml file
View ghe-backup-senza-yaml
# basic information for generating and executing this definition
SenzaInfo:
StackName: hello-world
Parameters:
- ImageVersion:
Description: "Docker image version of hello-world."
# a list of senza components to apply to the definition
SenzaComponents:
# this basic configuration is required for the other components
- Configuration:
You can’t perform that action at this time.