This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
Param( | |
$registryPath = "HKLM:\System\CurrentControlSet\Test" | |
) | |
Function Get-RegistryValue { | |
Param( | |
[Parameter(Mandatory)] | |
[string]$Path | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#POC for authenticating via RSA with powershell | |
Function Get-AttributeValue { | |
[CmdletBinding()] | |
Param( | |
$Content, | |
$Token | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* USER CODE BEGIN Header */ | |
/** | |
****************************************************************************** | |
* @file : main.c | |
* @brief : Main program body | |
****************************************************************************** | |
* @attention | |
* | |
* <h2><center>© Copyright (c) 2021 STMicroelectronics. | |
* All rights reserved.</center></h2> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
https://stackoverflow.com/questions/57294829/create-a-specific-work-item-bug-for-each-failed-test-case-in-azure-devops-pipe | |
https://www.c-sharpcorner.com/blogs/create-work-items-in-visual-studio-team-services-using-powershell | |
https://medium.com/@sandeepsinh/create-work-item-with-rest-api-in-azure-devops-28f979a12f37 | |
https://stackoverflow.com/questions/44707891/tfs-rest-api-for-workitem-missing-relations-section-in-json-returned | |
#> | |
<# | |
.SYNOPSIS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
New-PowershellModuleWithPipeline.ps1 | |
.DESCRIPTION | |
Creates a powershell module, git repo, build and branch policies | |
.PARAMETER Server | |
The tfs/vsts/azure devops server host name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Add-AuthenticodeSigningToScript { | |
<# | |
.SYNOPSIS | |
Signs scripts during the build process | |
.DESCRIPTION | |
Uses an in-memory cert to sign files, rather than from one of the stores | |
.PARAMETER Path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Test-Unattend.ps1 | |
.DESCRIPTION | |
Test-Unattend.ps1 | |
.NOTES | |
For additonal information please contact david.wallis@transunion.co.uk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
RefactorPSM1.ps1 | |
.DESCRIPTION | |
RefactorPSM1.ps1 | |
.NOTES | |
For additonal information please contact david@wallis2000.co.uk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Stateless; | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Linq; | |
using System.Xml; | |
using System.Xml.Serialization; | |
namespace StatelessTest | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function MergeAndSort { | |
<# | |
.SYNOPSIS | |
MergeAndSort | |
.DESCRIPTION | |
Merges arrays and sorts, extracted for refactoring and adding unit tests | |
.PARAMETER VMNumbers | |
VMware Number array |