Skip to content

Instantly share code, notes, and snippets.

View glenndierckx's full-sized avatar

Glenn Dierckx glenndierckx

View GitHub Profile
@glenndierckx
glenndierckx / SimpleAuthenticator.cs
Created February 24, 2022 13:48
SimpleAuthenticator.cs
using System;
using System.Diagnostics;
using System.Net;
using System.Security.Cryptography;
using System.Text;
namespace SimpleAuthenticator;
public class Authenticator
{
<?xml version="1.0" encoding="utf-8"?>
<AdminDeploymentCustomizations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/wix/2011/AdminDeployment">
<BundleCustomizations TargetDir="C:\Program Files (x86)\Microsoft Visual Studio 14.0" NoCacheOnlyMode="default" NoWeb="default" NoRefresh="default" SuppressRefreshPrompt="default" Feed="default" />
<SelectableItemCustomizations>
<SelectableItemCustomization Id="VSUV3RTMV1" Hidden="no" Selected="yes" FriendlyName="Visual Studio 2015 Update 3" />
<SelectableItemCustomization Id="MicroUpdateV3.1" Selected="yes" FriendlyName="Update for Microsoft Visual Studio 2015 (KB3165756)" />
<SelectableItemCustomization Id="WebToolsV1" Hidden="no" Selected="yes" FriendlyName="Microsoft Web Developer Tools" />
<SelectableItemCustomization Id="GitForWindowsx64V4" Hidden="no" Selected="yes" FriendlyName="Git for Windows" />
<SelectableItemCustomization Id="GitForWindowsx86V4"
using System;
using System.Collections.Generic;
using System.Linq;
namespace CollectionHelpers
{
public static class MergeHelper
{
public static void Merge<TCurrent, TToBe, TId>(
this IEnumerable<TCurrent> current,