Chess nuts boasting in an open foyer
Endgame nipping at your king
Two move checkmate being sung by a fool
And pawns advanced up to be a queen
First line orginally by @brucel: https://twitter.com/brucel/status/811887063066935296
[CmdletBinding()] | |
param( | |
[string] | |
$ProjectName, | |
[string] | |
$ProjectGroup, | |
[string] | |
$RootUri, |
function FindTlsThumbprintToUse | |
{ | |
param( | |
[String]$VariableName = "TlsThumbprint" | |
) | |
$thumbprint = Get-ChildItem -Path cert:\LocalMachine\My\* -EKU "Server Authentication" | | |
Where-Object { | |
# The last where, for -eq $true helps avoid returning a null object in some cases. | |
$_.DnsNameList -and ($_.DnsNameList.punycode.endswith(".yourtlddomain.here") | Where-Object { $_ -eq $true }) |
param( | |
[String] | |
$ProjectName, | |
[String] | |
$AccountName, | |
[PSCredential] | |
$TokenCredential | |
) |
https://download.docker.com/win/stable/Docker%20for%20Windows%20Installer.exe |
<# | |
.SYNOPSIS | |
Gets focused Az log information on resources. Helpful to determine who created what. | |
.DESCRIPTION | |
Providing only the ResourceGroupName will retrive logs for all items in that resource group. You can additionall filter the operations. If you also provide the resource name and type then only logs for that single items will be retrieved | |
.PARAMETER ResourceGroupName | |
Specifies the name of the resource group. |
[CmdletBinding()] | |
param( | |
$groupName = 'SpotYield-Dev', | |
$locationName = 'South Central US', | |
$planName = 'SpotYield', | |
$webAppName = 'SpotYieldUi', | |
$apiAppName = 'SpotYieldApi', | |
$webNetName = 'WebNet' | |
) |
# Links that helped me figure this out | |
# https://stackoverflow.com/questions/23788564/npm-add-root-ca | |
# https://docs.npmjs.com/files/npmrc | |
# |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Chess nuts boasting in an open foyer
Endgame nipping at your king
Two move checkmate being sung by a fool
And pawns advanced up to be a queen
First line orginally by @brucel: https://twitter.com/brucel/status/811887063066935296
import-module webadministration | |
$ErrorActionPreference = "SilentlyContinue" | |
$bindings = Get-WebBinding | |
$bindings | Select -First 1 * | |
function GetAppPoolApps($appPool) | |
{ | |
if($appPool -like "#{*") { return } | |
$apps = Get-WebConfigurationProperty "/system.applicationHost/sites/site/application[@applicationPool='$appPool']" "machine/webroot/apphost" -name path -ErrorAction SilentlyContinue | |
if(!$apps) { return } |