Skip to content

Instantly share code, notes, and snippets.

View chgeuer's full-sized avatar
🏠
Working from Düsseldorf

Dr. Christian Geuer-Pollmann chgeuer

🏠
Working from Düsseldorf
View GitHub Profile
@chgeuer
chgeuer / ASEPreRegistration.py
Created February 6, 2019 16:54 — forked from nilaydshah/ASEPreRegistration.py
ASE Pre-Registration Script
import argparse
import sys
import grp
import pwd
import subprocess
import os
import json
class PreRegistration:

BOSH CF repro - Assign new IP to booting VM

  • Create a NIC with start_ip
  • Start VM with that NIC
  • While VM is in Creating state, change private (primary) IP to alternative_ip

Base setup

export rg_name=switchip
git clone https://gist.github.com/josevalim/ea4bf4fb5a009d33ff37f406e25c4749 day01
youtube-dl https://www.twitch.tv/videos/344508213
git clone https://gist.github.com/josevalim/00fc469328c1c985ad082b82fd102c51 day02
youtube-dl https://www.twitch.tv/videos/344091220
git clone https://gist.github.com/josevalim/480046898935716bd76a77361296db26 day03
youtube-dl https://www.twitch.tv/videos/343661380
git clone https://gist.github.com/josevalim/bc8b3e36bf273a5b83a3fe9c6672b8a1 day04
Jeden Abend machte Herr Noah einen Rundgang durch die Arche, um nachzusehen, ob alles in Ordnung war,
und um allen gute Nacht zu sagen. Eines Abends, als er zum Zwischendeck hinaufstieg, hörte er zornige Stimmen.
»Tiere wie ihr sollten einfach nicht erlaubt sein!«
Herr Noah beeilte sich, die Treppe hinaufzukommen.
»Eine Schande!«
@chgeuer
chgeuer / jwt_ms.html
Created November 23, 2018 07:03
jwt.ms
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jwt.ms: Welcome!</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"></script>
<style>
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700");html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline
@chgeuer
chgeuer / vmtags.md
Last active September 25, 2018 12:25

ARM Tags

{
    "type": "Microsoft.Compute/virtualMachines",
    "location": "westeurope",
    "tags": {
    "bkp_fs_schedule": "mo:111111111111111111111111, tu:111111111111111111111111, we:111111111111111111111111, th:111111111111111111111111, fr:111111111111111111111111, sa:111111111111111111111111, su:111111111111111111111111, min:1d, max:3d",
    "bkp_db_schedule": "mo:111111111111111111111111, tu:111111111111111111111111, we:111111111111111111111111, th:111111111111111111111111, fr:111111111111111111111111, sa:111111111111111111111111, su:111111111111111111111111, min:1d, max:3d",
    "bkp_log_schedule": "mo:111111111111111111111111, tu:111111111111111111111111, we:111111111111111111111111, th:111111111111111111111111, fr:111111111111111111111111, sa:111111111111111111111111, su:111111111111111111111111, min:10m, max:30m",
namespace EricaRepro
{
using System;
using System.Text;
using System.Threading.Tasks;
public class MessageForwarder
{
public bool AlreadyForwardedHeader { get; private set; } = false;
public Func<byte[], Task> Forwader { get; private set; }
[
%{
"currentValue" => 0,
"limit" => 2000,
"name" => %{
"localizedValue" => "Availability Sets",
"value" => "availabilitySets"
},
"unit" => "Count"
},