Skip to content

Instantly share code, notes, and snippets.

View FISHMANPET's full-sized avatar

Peter Bajurny FISHMANPET

View GitHub Profile
@FISHMANPET
FISHMANPET / azure-pipelines.yml
Last active April 26, 2021 23:12
Sample Azure Pipelines file to consume Module Deployment template
trigger:
- '*'
pr:
- main
pool:
vmImage: 'windows-latest'
variables:
- group: 'GitHub PATs'
trigger:
- '*'
pr:
- master
pool:
vmImage: 'windows-latest'
stages:
- stage: Build
@FISHMANPET
FISHMANPET / badchars.ps1
Created May 22, 2019 20:37
Pester Test to find Troublesome Characters
Describe 'Troublesome characters' {
Context 'Computer says no' {
BeforeAll {
$charsHyphen = [char[]](8211, 8212, 8213)
$charsQuoteSingle = [char[]](8216,8217,8218,8219)
$charsQuoteDouble = [char[]](8220,8221,8222)
$allowedScriptsHyphen = @(
'Write-Host First {0} Second'
'Write-Host "Text {0}"'