Skip to content

Instantly share code, notes, and snippets.

View petedavis's full-sized avatar

Peter Davis petedavis

View GitHub Profile
@petedavis
petedavis / certman-prod.yaml
Created December 16, 2019 12:13 — forked from IngCr3at1on/certman-prod.yaml
dns challenge (for either internal or external TLS)
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
namespace: cert-manager
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
email: <your email>
@petedavis
petedavis / Add-DeveloperDefenderExclusions.ps1
Last active March 26, 2020 04:23
Windows Defender Exclusions for Visual Studio development
# Visual Studio 2017 processes
Add-MpPreference -ExclusionProcess "${ENV:ProgramFiles(x86)}\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe"
Add-MpPreference -ExclusionProcess "${ENV:ProgramFiles(x86)}\Microsoft Visual Studio\2017\Professional\Common7\ServiceHub\Hosts\ServiceHub.Host.Node.x86\ServiceHub.Host.Node.x86.exe"
Add-MpPreference -ExclusionProcess "${ENV:ProgramFiles(x86)}\Microsoft Visual Studio\2017\Professional\Common7\ServiceHub\Hosts\ServiceHub.Host.CLR.x86\ServiceHub.RoslynCodeAnalysisService32.exe"
Add-MpPreference -ExclusionProcess "${ENV:ProgramFiles(x86)}\Microsoft Visual Studio\2017\Professional\Common7\IDE\Microsoft.VisualStudio.Web.Host.exe"
Add-MpPreference -ExclusionProcess "${ENV:ProgramFiles(x86)}\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe"
Add-MpPreference -ExclusionProcess "${ENV:ProgramFiles(x86)}\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Roslyn\VBCSCompiler.exe"
# Visual Studio 2019 processes
Add-MpPreference -Exclusi

Keybase proof

I hereby claim:

  • I am petedavis on github.
  • I am pdiddyau (https://keybase.io/pdiddyau) on keybase.
  • I have a public key ASDFWk81anKR81TSdvjTNasZnWzYiILkepZU_x4T5u8BAQo

To claim this, I am signing this object:

@petedavis
petedavis / NuGet.config
Created April 21, 2017 02:10
Orchard Core CMS nget.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<!-- only use the feeds below -->
<clear/>
<!-- Orchard Core dependency feeds -->
<add key="aspnet-contrib" value="https://www.myget.org/F/aspnet-contrib/api/v3/index.json" />
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
<add key="Orchard2" value="https://www.myget.org/F/orchard2/api/v3/index.json" />
<add key="icunet" value="https://www.myget.org/F/icu-dotnet/api/v3/index.json" />
@petedavis
petedavis / SetupFakeDeploy.cmd
Created March 11, 2016 03:46
Setup Fake.Deploy
@echo on
cd %~dp0
SETLOCAL
SET NUGET_VERSION=latest
SET CACHED_NUGET=%LocalAppData%\NuGet\nuget.%NUGET_VERSION%.exe
IF EXIST %CACHED_NUGET% goto copynuget
echo Downloading latest version of NuGet.exe...
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
@petedavis
petedavis / start.cmd
Last active August 29, 2015 14:21
geteventstore.com startup batch file
@echo off
start %~dp0\EventStore.ClusterNode.exe --db ./db --log ./logs
:: Delay for 2s to allow eventstore to start before opening the browser
PING -n 3 127.0.0.1>nul
:: default login is admin:changeit
start http://127.0.0.1:2113/