Skip to content

Instantly share code, notes, and snippets.

Michael DePouw spottedmahn

Block or report user

Report or block spottedmahn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Restart IIS
net stop /y was && net start w3svc
spottedmahn /
Created Mar 14, 2019
Self Signed Cert Windows via PowerShell
$ExpirationDate = (Get-Date).AddYears(20)
New-SelfSignedCertificate -dnsname localhost -subject "CN=BlahApp" -CertStoreLocation "Cert:\LocalMachine\My" -FriendlyName "Blah Local Development Certificate" -NotAfter $ExpirationDate
spottedmahn / Debugging ASP.NET Core Routing.cs
Last active Sep 2, 2018
Some code to see what ASP.NET Core sees for routes and actions
View Debugging ASP.NET Core Routing.cs
using Microsoft.AspNetCore.Mvc.ApplicationParts;
using Microsoft.AspNetCore.Mvc.Controllers;
using Microsoft.AspNetCore.Mvc.Infrastructure;
public SomeController(
IActionDescriptorCollectionProvider actionDescriptorCollectionProvider,
ApplicationPartManager applicationPartManager)
{ }
You can’t perform that action at this time.