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
#Requires -PSEdition Core | |
<# | |
.SYNOPSIS | |
Retrieves distinct commits and associated work items for a build pipeline... with support for monorepos! | |
See the blog post at https://tiberriver256.github.io/DevOps/azure-devops-pipelines-related-work-items-monorepo for more information. | |
.DESCRIPTION | |
This script retrieves the distinct commits and associated work items for a build pipeline. It requires the following parameters: |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net8.0</TargetFramework> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
</PropertyGroup> | |
<ItemGroup> |
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
# NOTE: | |
# This change will probably be reverted the next time you save the task group in the UI... I am sorry | |
$MyPat = "INSERT_PAT_TOKEN_WITH_TASK_GROUP_SCOPES" | |
$TaskGroupId = "INSERT_TASK_GROUP_ID" | |
$Organization = "INSERT_ORGANIZATION" | |
$Project = "INSERT_PROJECT" | |
$VariableToChange = "INSERT_VARIABLE_NAME_YOU_WANT_MULTILINE" | |
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 | |
Runs a git log in PowerShell and prints options as a PowerShell custom object | |
.EXAMPLE | |
PS> Get-GitLogStats -CommitHash -AuthorName -AuthorEmail -AdditionalArgs '--since="30 days ago"' | |
CommitHash AuthorName AuthorEmail | |
---------- ---------- ----------- | |
5426c8744a7fa3a602122738415ab32c80f2c1ad Micah Rairdon [email protected] | |
5427c8744a7fa3a602122738415ab32c80f2c1ad Micah Rairdon [email protected] |
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
Import-Module VSTeam | |
function Get-AzureDevOpsAgentSpecifications { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory)] | |
[string] | |
$Account, |
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 | |
Get some filler text that is dad jokes | |
.PARAMETER minLength | |
The minimum length of text you need | |
PS> Get-DadJokeIpsum -minLength 500 | |
Where did Captain Hook get his hook? From a second hand store. Why was the broom late for the meeting? He overswept. Dad, can you put my shoes on? I don't think they'll fit me. For Valentine's day, I decided to get my wife some beads for an abacus. It's the little things that count. Why is the ocean always blue? Because the shore never waves back. How does a dyslexic poet write? Inverse. Whiteboards ... are remarkable. Want to hear a joke about construction? Nah, I'm still working on it. Why do scuba divers fall backwards into the water? Because if they fell forwards theyâd still be in the boat. Some people say that comedians who tell one too many light bulb jokes soon burn out, but they don't know watt they are talking about. They're not that bright. Don't trust atoms. They make up everything. I am terrified of elevators. Iâm going to start taking steps to |
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 | |
Copy files using your clipboard and PowerShell | |
.DESCRIPTION | |
The file specified at $Path is converted to a base64 string, wrapped with a tiny script that converts the base64 string | |
back to binary and saves it at the path specified in the $Destination parameter | |
#> | |
function Copy-PasteItem { | |
[CmdletBinding()] |
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
<html> | |
<body> | |
<table style="width: 100%; overflow-x: hidden; table-layout: fixed;"> | |
<tbody> | |
<tr> | |
<td style="text-align: center; width: 200px; border-right: solid;"> | |
<h1>Product</h1> | |
<img src="https://media.haworth.com/image/117471/s800/fern_linkedin_50x50_1-(1).jpg" style="max-height: 100px;" /> | |
</td> | |
<td style="padding-left: 20px"> |
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
## Git | |
cinst -y git.install | |
cinst -y poshgit | |
cinst -y Git-Credential-Manager-for-Windows | |
cinst -y visualstudiocode |
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
$Port = "8080" | |
netstat -a -n -o | where { $_ -match $Port } | foreach { | |
$Process = Get-Process -PID (($_ -replace "\s+"," ") -split " ")[-1] | |
"Process: $($Process.ProcessName) ($($Process.Id)) is using $Port" | |
} |
NewerOlder