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
# Description: Copies branch policies from one branch to another branch | |
# Run the script in the root of the git repository | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory = $true)] | |
[string] $RepositoryName, | |
[Parameter(Mandatory = $true)] | |
[string] $FromBranch, |
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
Param | |
( | |
[PSCustomObject]$User, | |
[string]$Organization # https://dev.azure.com/foo | |
) | |
Write-Host "Get user groups for user: $($User.principalName) in organisation $Organization" | |
$UserGroups = @() |
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
$wifiProfile = "WiFi in de trein"; | |
#$wifiProfile = "Guest Hotspot"; | |
# Get list of saved Wifi connections | |
#netsh wlan show profiles | |
# Show details of Wifi connection | |
$output = netsh wlan show profiles name=$wifiProfile key=clean | |
$costs = $output | Select-String -Pattern 'Cost' |
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
makecert.exe ^ | |
-n "CN=CARoot" ^ | |
-r ^ | |
-pe ^ | |
-a sha512 ^ | |
-len 4096 ^ | |
-cy authority ^ | |
-sv CARoot.pvk ^ | |
CARoot.cer |
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 Microsoft.VisualStudio.TestTools.WebTesting; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System.ComponentModel; | |
namespace Extensions.ValidationRules | |
{ | |
/// <summary> | |
/// A JSON validation rule for Visual Studio webtest that validates a property of a JSON response. | |
/// </summary> |
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 Microsoft.VisualStudio.TestTools.WebTesting; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using System.ComponentModel; | |
namespace Extensions.ExtractionRules | |
{ | |
/// <summary> | |
/// A JSON extraction rule for Visual Studio webtest that extracts a value from a JSON response. | |
/// </summary> |