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 | |
Delete current branch and switch to another one | |
.DESCRIPTION | |
This will pull latest from new branch | |
.PARAMETER NewBranch | |
Branch to switch 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
#! pwsh | |
<# | |
.SYNOPSIS | |
Helper for running various tasks | |
.DESCRIPTION | |
This script is a wrapper for snippets of dot net commands. It is useful to keep in the root of a project for running various tasks. | |
.PARAMETER Tasks | |
One or more tasks to run. Use tab completion to see available tasks. |
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 | |
Add or update an annotation to a Kubernetes resource | |
.PARAMETER ResourceName | |
Kind of Kubernetes resource to add annotation to, e.g. ingress, service, deployment, etc. | |
.PARAMETER AnnotationName | |
Name of annotation to add or update |
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 | |
Watch a file for changes | |
.PARAMETER File | |
File to watch, may be a folder with a mask | |
.EXAMPLE | |
$watch = Start-WatchFile .\src\test\hras\hra-heart-health.json -ChangeScript {param($ChangeType,$FullPath) Write-Host "$FullPath Changed" } | |
# do something else |
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 ZLocation | |
Import-Module posh-git | |
Import-Module posh-git | |
if ($PSVersionTable.PSVersion.Major -lt 6) { | |
Import-Module Jump.Location | |
} | |
# Set up a simple prompt, adding the git prompt parts inside git repos | |
function global:prompt { |
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
{ | |
"Ansi 5 Color" : { | |
"Green Component" : 0, | |
"Red Component" : 0.73333334922790527, | |
"Blue Component" : 0.73333334922790527 | |
}, | |
"Tags" : [ | |
], | |
"Ansi 12 Color" : { |
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 | |
Create a new PR | |
.DESCRIPTION | |
Long description | |
.PARAMETER Directory | |
Source directory of the PR, defaults to current directory |
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 | |
Run a scriptblock for all sub folders that are Git repos. Supports -WhatIf, -Confirm | |
.PARAMETER ScriptBlock | |
Scriptblock to run for each git Folder. Defaults to $defaultFegScriptBlock which shows status. See Notes for parameters | |
.PARAMETER HasWorking | |
Set to true to only run on folders that have 'working' git flag set |
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 | |
base64 conversion function | |
.DESCRIPTION | |
Convert to and from base64 like Linux base64 utility | |
.PARAMETER s | |
File name or string |
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 | |
Split out the manifest files from a helm dryrun for comparing against one another or the Helm /template folder | |
.PARAMETER line | |
Lines from --dry-run output | |
.PARAMETER OutputPath | |
Existing folder where to put the files |
NewerOlder