Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Staying at home

Stefan Scherer StefanScherer

🏠
Staying at home
View GitHub Profile
View pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC9kGgoPlJg8JEiBvAi0MMTkBg3tWFyLObG5Gcm6Fy2cUaHCRl7obiG/hUUj9GWvsQs+94t9+1ZvVXsOpXZ0LHFUfKOEIpCduI29aKOGcdJJUXX9zMyy79upFGCiuaBH4DR05uCJdR9wL5S5eRGSa+TZb9+vwWzVyg+AqNgyaXfPaNxqvFWjOpZo99xQ6eiJXId7uIwjJZegERNJAFiIbDVbkNTGYYlos5Q9CjlFNDoZfPicGZruRAz4VUPZq8O0DEw97saC8KnuY4KA1lwkbRM7qjY5XSdU5WO2IAJFS9E4rEWq9sPfETZfavNSiB0CeX/kCBN9maUsCJ3goPpmG9TnVToU628Opesu6vP4fkX+7PM/JTZCGv0bxETRu8629wSM2/KW6UvvUwEKgDLcvcnapxQk6jxGnbYlL5+g0yYimhVBQeq7Oo9YO67iangF1lXv98+9P6gGC4MGaopRjbB+40OobpYSrs1Gl40FXwJC1kXAxCKUW+Y6MO8GiicVEM= docker@ovh18
View pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDX/jV3RvV5vibUuLjCzqsyZ4F2z4NBfG6ph/hxDJYAKwCb8XqkY/ZtKNWf+A/L3bh9ene2WEqxABBMEcf8+mPeL/3aJ6keywxTtkk1HarcNrztcBL/O+v/xflPa0h3EOf6gNo4FDPDJQx5q4nREPxnEdItVoEFP+sVYyzAO2vuWs890+uO7fJhQ1mI8UynM0g3a/UOUjfi5Wg9x3g/fm0tz92X4Qv5ZSyS7FwULF6S2PeWsb92HOSBmn8TWbEIVo0xJ5bKwsRfkt0q/XC/klqDuDDHOelMWI7F+KnSCjiTVa1wpdwn9dAt4A72kxPbqdNOTFcZLjqJcAGA9bi+CMl4lb4kuKyCLRrmJUHuDZ72znkE109x+Wc64ddypA/uWTO+9bgkaPXHgnRuYIC5DsKjKYnr/xPuN6zN436cCc7ukdrvtIbbME9BUV77a/13qaGwtRzyLLJAn/m5Yq/VdL0dKSyo+c2bkka5txfdlKxQn+ujSoJpgxI4OwpWA16EutU= docker@ovh18
@StefanScherer
StefanScherer / Dockerfile
Created May 1, 2020
test moby/moby issue 40734
View Dockerfile
FROM ubuntu:focal
RUN apt update && apt install -y libc6:armfh
@StefanScherer
StefanScherer / flash-ubuntu.md
Created Mar 14, 2020
Ubuntu + user-data = HypriotOS
View flash-ubuntu.md

How to flash Ubuntu 64bit and use it like HypriotOS

  • auto install avahi-daemon
  • auto install latest docker-ce 19.03.8
flash -n pi4 --userdata stefans-user-data http://cdimage.ubuntu.com/releases/18.04.4/release/ubuntu-18.04.4-preinstalled-server-arm64+raspi3.img.xz

Boot your Raspberry Pi 3 or 4

View auth
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCmRhIcJz+124p+gHv8jhvMq6yBQuEMKUF+Zxdxm6HZl/tnuwlAWGq+rU5C/10MXArauNl3M2sjH8zzbvW6jh4qlsS5Ax62apMuRWiX8XfLx6ssUVh+IfoZJDVbaeJu1jtbQQly+BfYeS5UBFnJlUFLHVVqmWfL44Q5DozvRnU0sYQd+gKjd3ai9By/dZvDaQxmq9tccKmGwVN4vF1S+ZmHK+FluC20k6TR8LN9c70hjTKkK8hEkvxAD/1Aij8RZAmKXXz9Cul3n4rB88XHiDG5gld22UuIGQ3xHqEUhOaSag9Dm+L3mo3xVFVy7IlkrzXqAEsgat5AaQsQrtL7JyPL
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKypMH2WZbDNQzE/ViTvcDTugOqd1pQjojIXxMVog87jUpz9mVcctKkF3V+xfi+ccwogM+TF3sWMN3vUYHHj8mG4xrslaals9bYR256RAnHE6xhWOEIj0IALts2ev0k/uC1r+0T9uj9M9h9LPFNqUVX6iJVYcWg3no9trHlL9WDexK/TObFGgDVVHJMsGdG9uDWTOZzbcHjK0AbS3e/4ZQwNOP1DofOGuhXc19iMesmjvoqgqpAOj4No7PN4dayosUsGfSxY0r2wt1SXtDvPYpoXAEHSES/0s4GFtryCNIjG1L/8MPcOHcM//UAHsp4I3/sJ1EEhDseRhE5wB6w4n3
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDqRtRoRjYIpeZme9FlR280IrTTNIsTmv4sFsISXw2lm6ysLwC53I0utWNTt7z65meRvvkD/IAaeq+Clgxk/KqKBr7YItG+Y8tWuQIE9botejaZgFd7W9N+6NleDErjevW1sD7ukIJDquF5CMmlFFjDEHa0ed3lahwLJjyB21CJ9DWe6tlDtosnKbJn6PzwXtFFnNHRPEOGdTWQfdhE/r/mL5gUUTvPqn
@StefanScherer
StefanScherer / Dockerfile
Created Feb 12, 2020
test 10.0.17763.1039 image
View Dockerfile
ARG tag=ltsc2019
FROM mcr.microsoft.com/windows/servercore:$tag
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN Write-Host it works!
@StefanScherer
StefanScherer / is-my-server-up-to-date.ps1
Last active Sep 26, 2019
Is my Windows Server up to date? Let's check it with latest Windows image tags from MCR :-) 🐳
View is-my-server-up-to-date.ps1
$ErrorActionPreference = 'Stop'
# fetch the current version number from host
$current=(Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion")
$currUBR=$current.UBR
# fetch the maximum version number from MCR by filtering and sorting the JSON result
$prefix="$($current.CurrentMajorVersionNumber).$($current.CurrentMinorVersionNumber).$($current.CurrentBuildNumber)."
$json=$(Invoke-WebRequest -UseBasicParsing https://mcr.microsoft.com/v2/windows/servercore/tags/list | ConvertFrom-Json)
$hubUBR=($json.tags | Where-Object -FilterScript { $_.StartsWith($prefix) -and $_ -Match "^\d+\.\d+\.\d+\.\d+$" } |%{[System.Version]$_}|sort)[-1].Revision
@StefanScherer
StefanScherer / build_windows_10_test.sh
Last active Mar 4, 2019
packer inspec windows vmware-vmx test
View build_windows_10_test.sh
#!/bin/bash
PACKER_LOG=debug packer build \
--only=vmware-vmx \
--var source_path=~/.vagrant.d/boxes/StefanScherer-VAGRANTSLASH-windows_10/2019.01.09/vmware_desktop/windows_10.vmx \
windows_10_test.json
@StefanScherer
StefanScherer / docker-machine-0.13.0-b2d-18.06.1-ok.txt
Created Nov 17, 2018
docker-machine 0.13.0 vs. 0.14.0 with vmwarefusion driver
View docker-machine-0.13.0-b2d-18.06.1-ok.txt
$ ./docker-machine-0.13.0 -D create -d vmwarefusion --vmwarefusion-boot2docker-url=https://github.com/boot2docker/boot2docker/releases/download/v18.06.1-ce/boot2docker.iso test
Docker Machine Version: 0.13.0, build 9ba6da9
Found binary path at ./docker-machine-0.13.0
Launching plugin server for driver vmwarefusion
Plugin server listening at address 127.0.0.1:54875
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
@StefanScherer
StefanScherer / docker-machine-0.13.0-b2d-18.09.0+vmxnet3+vmci-fusion-10.1.3-macos-10.14.1.txt
Created Nov 17, 2018
docker-machine 0.13.0 + boot2docker.iso 18.09.0 + vmxnet3 + vmci
View docker-machine-0.13.0-b2d-18.09.0+vmxnet3+vmci-fusion-10.1.3-macos-10.14.1.txt
$ ./docker-machine-0.13.0 -D create -d vmwarefusion --vmwarefusion-boot2docker-url=https://github.com/StefanScherer/boot2docker/releases/download/v18.09.0-vmxnet3-vmci/boot2docker.iso test
Docker Machine Version: 0.13.0, build 9ba6da9
Found binary path at ./docker-machine-0.13.0
Launching plugin server for driver vmwarefusion
Plugin server listening at address 127.0.0.1:54590
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName