Skip to content

Instantly share code, notes, and snippets.

View mkoertgen's full-sized avatar
💭
Mostly working on DevOps stuff (#azuredevops, #k8s)

Marcel Körtgen mkoertgen

💭
Mostly working on DevOps stuff (#azuredevops, #k8s)
View GitHub Profile
@mkoertgen
mkoertgen / mkdocs_task.bat
Last active April 19, 2016 12:14
Using built-in mkdocs server in production on Windows (Scheduled Task)
@echo off
setlocal
set logfile=%~n0.log
set taskName=%~n0
cd /D "%~dp0"
set command=%1
if "%command%"=="" set command=usage
@mkoertgen
mkoertgen / ClickOnce.cs
Created April 19, 2016 16:10
ClickOnce: Setting a custom icon in 'Add/Remove Programs'
using System;
using System.Deployment.Application;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using Microsoft.Win32;
namespace MyApp
{
@mkoertgen
mkoertgen / Patching ClickOnce Manifests.md
Created April 19, 2016 16:12
Patching ClickOnce Manifests

Patching ClickOnce Manifests

The following examples take on the example of deploying the fictional .NET application app.exe. NOTE: With ClickOnce you can only deploy .NET applications out of the box. Ho, cf. How can I deploy a non .net application with ClickOnce?.

Creating a ClickOnce deployment for any .NET application

Create the application manifest from the build output (binaries)

mage -n Application -t app\app.exe.manifest -fd app

@mkoertgen
mkoertgen / README.md
Last active March 15, 2020 17:23
Docker Toolbox Quickstart Terminal using Hyper-V Raw

Using Docker Toolbox on Windows with Hyper-V instead of Virtualbox

Unless you successfully signed up for Docker Beta you probably had trouble getting started with Docker Toolbox on Windows.

The typical issue is that the Docker Quickstart Terminal will refuse to start because Hyper-V is installed, cf. docker/toolbox #77. In fact this is related to Oracle VirtualBox 5.0 coming with the current Docker Tools release.

The usual advice is to just uninstall Hyper-V - which i consider a big deal, especially on Windows 10.

@mkoertgen
mkoertgen / README.md
Last active May 21, 2017 22:14
hello.webrtc

hello.webrtc

Setting up a custom, private WebRTC server using Spreed WebRTC

@mkoertgen
mkoertgen / cloudSettings
Last active January 9, 2020 21:25
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-01-09T21:25:25.038Z","extensionVersion":"v3.4.3"}
@mkoertgen
mkoertgen / README.md
Last active November 5, 2018 09:31
Fun with neo4j intersections

Fun with neo4j intersections

Suppose you are about to host an event and want to invite customers. The event is so extraordinary that you want to invite customers only having at least one department in Berlin and also in Munich.

Setup

First, setup some example customers (Tom, Dick & Harry):

@mkoertgen
mkoertgen / README.md
Last active March 26, 2025 05:45
Microsoft Teams Outlook AddIn Hacks

Microsoft Teams Outlook AddIn Hacks

In projects inclined to the Microsoft ecosystem, Teams is probably the best collaboration option, especially if your team members are dislocated. Probably because using different Office 365 accounts i had a hard time getting the Teams-Addin to work with Outlook. This is a know problem as you can find numerous articles on the web from people asking for help about this issue. Microsoft is working to enhance the Teams / Outlook experience.

One especially helpful article was Missing Teams Outlook Add-in by Michael LaMontagne (@RealTimeUC). Michael was the only one trying to dig deeper into the nitty-gritty details of COM-registration between Outlook and the Teams .NET application, deployed using Squirrel.Windows (as most Electron-based desktop-apps on Windows, e.g. Slack etc.).

He finally got the Teams-AddIn working by duplicating registry keys from a working machine. However, after reviewing the Teams & Teams

@mkoertgen
mkoertgen / 2nd_teams.cmd
Last active June 19, 2023 12:12
msteams-hacks
@ECHO OFF
SET MSTEAMS_PROFILE=%1
if "%MSTEAMS_PROFILE%"=="" SET MSTEAMS_PROFILE=%~n0
ECHO - Using profile "%MSTEAMS_PROFILE%"
SET "OLD_USERPROFILE=%USERPROFILE%"
SET "USERPROFILE=%LOCALAPPDATA%\Microsoft\Teams\CustomProfiles\%MSTEAMS_PROFILE%"
ECHO - Launching MS Teams with profile %MSTEAMS_PROFILE%
@mkoertgen
mkoertgen / README.md
Last active June 3, 2021 16:40
Lookup Kibana Alias for Open Distro Tenant

Lookup Kibana Alias for Open Distro Tenant

The "Open Distro"-fork of Elasticsearch uses Tenants instead of Kibana Spaces where each tenant corresponds to a separate Kibana Index / Alias.

When provisioning Kibana Objects on an "Open Distro"-cluster using the Phil Bakers Terraform Elasticsearch community provider it will by default create resources in .kibana-index which corresponds to the global tenant.

For example after spinning up a single node cluster the different Kibana indexes may look like