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
//https://github.com/aspnet/IISIntegration/issues/1401#issuecomment-423252335
net stop /y was && net start w3svc
@spottedmahn
spottedmahn / self-signed-cert.ps
Created Mar 14, 2019
Self Signed Cert Windows via PowerShell
View self-signed-cert.ps
$ExpirationDate = (Get-Date).AddYears(20)
New-SelfSignedCertificate -dnsname localhost -subject "CN=BlahApp" -CertStoreLocation "Cert:\LocalMachine\My" -FriendlyName "Blah Local Development Certificate" -NotAfter $ExpirationDate
@spottedmahn
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)
{ }
[Route("routes")]
You can’t perform that action at this time.