Skip to content

Instantly share code, notes, and snippets.

View wekempf's full-sized avatar

William Kempf wekempf

View GitHub Profile
@wekempf
wekempf / Box.ps1
Last active June 20, 2016 14:40
My BoxStarter script.
#Requires -RunAsAdministrator
function Get-InstalledPackageCount($Name) {
if ((clist -l $Name | Select-Object -Last 1) -match "\d*") {
[int]($matches[0])
} else {
0
}
}
@wekempf
wekempf / build.cake
Created October 13, 2016 16:31
Cake build script for Wyam.
#tool nuget:?package=Wyam&prerelease
#addin nuget:?package=Cake.Wyam&prerelease
//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
//////////////////////////////////////////////////////////////////////

Keybase proof

I hereby claim:

  • I am wekempf on github.
  • I am wekempf (https://keybase.io/wekempf) on keybase.
  • I have a public key ASDdOwvZPsFUTTghCnHrmhge9H5tpc2J7XqR2q8YvYTXAAo

To claim this, I am signing this object:

@wekempf
wekempf / LoggingExtra.cs
Created June 9, 2021 00:11
Microsoft.Extensions.Logging with extra data
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;