Skip to content

Instantly share code, notes, and snippets.

View jeroenbrons's full-sized avatar

Jeroen Brons jeroenbrons

  • Gelderland NL
View GitHub Profile
@jeroenbrons
jeroenbrons / cloudSettings
Last active September 17, 2021 09:57
jcrvsocde
{"lastUpload":"2021-09-07T20:22:18.417Z","extensionVersion":"v3.4.3"}
@jeroenbrons
jeroenbrons / README.md
Last active April 9, 2021 07:20 — forked from djfdyuruiry/README.md
WSL 2 - Enabling systemd

Enable systemd in WSL 2 -UGLY FIX BY JEROEN BRONS AKA SPARCie

This guide will enable systemd to run as normal under WSL 2. This will enable services like microk8s, docker and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.

  • To enable systemd under WSL we require a tool called systemd-genie

  • Copy the contents of install-sg.sh to a new file /tmp/install-sg.sh:

    cd /tmp
@jeroenbrons
jeroenbrons / GLUSTER_SETUP.sh
Created March 18, 2021 09:28 — forked from smola/GLUSTER_SETUP.sh
Quick and dirty single-node GlusterFS setup
#
# Instructions for quick gluster server (1 node) setup with a volume on LVM.
# No replication, just using localhost.
#
# See https://docs.gluster.org/en/latest/Administrator%20Guide/Brick%20Naming%20Conventions/
#
# Install GlusterFS
add-apt-repository ppa:gluster/glusterfs-4.0
apt-get install glusterfs-server
@jeroenbrons
jeroenbrons / convertmactodnet.py
Last active October 6, 2020 20:51
Script to turn DECnet Area-number and Nodenumber into a MAC-adress for SIMH
#!/usr/bin/python
#BY SPARCie
import sys, getopt, numpy
firstoctets = 'AA-00-04-00'
def main(argv):
area = ''
firstFour = 'AA-00-04-00'
node = ''
{"ignition":{"version":"3.1.0"},"passwd":{"users":[{"name":"core","sshAuthorizedKeys":["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC2gGa8W3d7o4qgXpoYskI9+vsUWVRCx5YmoJ3HCvgpkdRG9QlDNUJfaCJkZndwLrJ/Oq+Di5PSGm9C6Eyum88z5meM1SajRRkrKeAydx5lqZV+bL+HRTCMfPkLZ+EkKHOPEosfrrnztMvmLsXHILuoB+k4C7TCd93BYEj5kKTuV8TbH+nonieRQx20q7N92ZMkdJgvdb7vbCKT7JMB55cfGfRiIr7XyJjNH7KEeMmNd7pbGBsmKjGerkX3dnsD06wbTFqAbggBX90bW4yQ1bGs4giYFklqD+ptBegD/+3Xi2WQ12aZFVcYV0MTauv5eeYlogT2p6L5mH3b63qlrs4F jeroen@Henks-MacBook.local\n","ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD0eaQRLcuISNLp1XXB5bZTfUVDgPTzNl9IM6S3fhRe3AIfJjey6LnKcG/yEloKleqfQE/ufOQa7eyvwjDMSeNNvVOP5HgC36wejlMu76YAwPRTdT3542VQ0nezXxTKgxvQKOaipfBeG+u/TWJ/3owjm/JhPITI4rDXx39I3TDcUkAXukFBEBOtlNZpAe0CL8HWm6PBnDZN0+2iN9h9GfktX10c4IgFY3Mei5oA2GhVXPLZjC8sZtFaiWt6nmMvfhw2YHmqxqjdEGvlY9yYOOzX6o0nCE4o+/gfq9zlbWOykKypgIpARItmHVB4YylKnecm8wf0pHDIIihLCRivMIEn\n"]}]},"storage":{"files":[{"overwrite":true,"path":"/etc/containers/registries.conf","user":{"name":"root"},"contents":{"source":"data:text/pl