Skip to content

Instantly share code, notes, and snippets.

View flcdrg's full-sized avatar

David Gardiner flcdrg

View GitHub Profile
@flcdrg
flcdrg / .profile
Created February 24, 2022 01:42
WSL .profile
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
@flcdrg
flcdrg / Convert-VariableGroup.ps1
Last active September 16, 2022 06:44
PowerShell script to convert an Azure DevOps Pipeline variable group to the equivalent YAML
<#
.SYNOPSIS
Convert Azure Pipelines Variable Group to YAML
.DESCRIPTION
Reads a variable group from an Azure DevOps pipeline library and converts it into the equivalent YAML
.NOTES
Requires the Azure CLI, with the azure-devops extension installed. eg. `az extension add --name azure-devops`
@flcdrg
flcdrg / Get-ClassicRelease.ps1
Created June 5, 2023 10:51
Azure DevOps REST APIs
Param(
[string]$organisation,
[string]$project,
[int] $releaseId,
[string]$token
)
$base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f "",$token)))
# https://vsrm.dev.azure.com/{organization}/{project}/_apis/release/releases/{releaseId}?approvalFilters={approvalFilters}&propertyFilters={propertyFilters}&$expand={$expand}&$topGateRecords={$topGateRecords}&api-version=7.0