I hereby claim:
- I am codedemonuk on github.
- I am pervez (https://keybase.io/pervez) on keybase.
- I have a public key ASApQtAJYCGEyiDqsXwU1sih0r5ZzxmE0xa7tazeXTM3gwo
To claim this, I am signing this object:
#!/usr/bin/env pwsh | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory = $true)] | |
[String] | |
$ParameterName | |
) | |
Write-Verbose -Message "Setting up PowerShell tools for AWS" |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env pwsh | |
#requires -version 4 | |
Param( | |
[Parameter(Mandatory=$True)] | |
[string]$Uri | |
) | |
Begin {} | |
Process { |
# Create a new self signed HTTPS Certificate for IIS Express | |
# Crafted with all organic, GMO, gluten free ingreditations | |
# with an artisinal SAN to make Chrome 58 onwards happy. | |
# | |
# See https://bugs.chromium.org/p/chromium/issues/detail?id=308330 | |
# | |
# Run this at an administrative PowerShell prompt. | |
# | |
# You will be prompted to trust a new certificate via a windows dialog. | |
# Click yes otherwise Visual Studio will not be able to determine your |
[CmdletBinding()] | |
param ( | |
[string] $ApplicationName = "DemoWebsite", | |
[string] $Hostname = "demo-website.local" | |
) | |
$ErrorActionPreference = "Stop" | |
$protocol = "http" | |
$toolsFolder = "$PSScriptRoot\build\tools" | |
$nugetExe = "$toolsFolder\nuget\nuget.exe" |
[CmdletBinding()] | |
param ( | |
[string] $ApplicationName = "DemoWebsite", | |
[int] $PortNumber = 80, | |
[string] $Hostname = "demo-website.local", | |
[string] $WebApplicationFolder = "$PSScriptRoot\src\$ApplicationName" | |
) | |
$ErrorActionPreference = "Stop" | |
$protocol = "http" |
@echo off | |
:: Download NuGet | |
if not exist ".\build\tools" mkdir ".\build\tools" | |
if not exist ".\build\tools\nuget" mkdir ".\build\tools\nuget" | |
if not exist ".\build\tools\nuget\nuget.exe" powershell -Command "Invoke-WebRequest https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile .\build\tools\nuget\nuget.exe" | |
:: Download Psake | |
set nuget=.\build\tools\nuget\nuget.exe | |
set EnableNuGetPackageRestore=true |
private readonly string _slackKey = "<Your API Token>"; | |
private readonly ILog _log = LogManager.GetCurrentClassLogger(); | |
private void ConnectToSlackIfDisconnected(bool isConnected) | |
{ | |
if (!isConnected) | |
{ | |
Task.Factory.StartNew(async () => | |
{ | |
while (!_bot.IsConnected) |
public class CastleWindsorHttpHandlerFactory : IHttpHandlerFactory | |
{ | |
private static IWindsorContainer _container; | |
public CastleWindsorHttpHandlerFactory() | |
{ | |
if (_container == null) | |
{ | |
_container = ((IContainerAccessor)HttpContext.Current.ApplicationInstance).Container; | |
} |