PowerShell scripts that assist with daily development tasks: compiling containers, managing Git repositories, cleaning build artifacts, and searching documentation.
- PowerShell 7+
- Git (for
Get-PullFromGH.ps1) - Azure CLI (for
Compile-Containers.ps1)
Alias: azcc
Builds container images using Azure Container Registry (ACR) Tasks. Iterates over a folder of Dockerfiles and queues the builds on ACR.
# Use defaults (resource group: monitoring-rg, registry: acr-monitoring)
Compile-Containers.ps1
# Custom settings
Compile-Containers.ps1 `
-ResourceGroupName "my-rg" `
-RegistryName "myregistry" `
-FolderName "containers" `
-TagName "v1.0" `
-SourceFolder "src"📖 Azure Container Registry Tasks
Creates a new self-signed TLS certificate for IIS Express development, removes the old certificate, and binds the new certificate to ports 44300–44399.
Create-IISExpressCert.ps1📖 Develop locally with HTTPS using IIS Express
Batch file to compile and run a C# file using the .NET compiler (csc.exe).
Alias: gfgh
Traverses all subdirectories of a root folder and runs git pull in each one. Optionally opens the log file in Notepad afterwards.
# Pull in all repos under the current folder
Get-PullFromGH.ps1
# Pull in all repos under a specific folder
Get-PullFromGH.ps1 -RootFolderPath "C:\Work\GitHub"
# Pull and open log in Notepad
Get-PullFromGH.ps1 -RootFolderPath "C:\Work\GitHub" -ShowLogAlias: rbo
Recursively removes all bin and obj folders from a given directory. Useful for cleaning up .NET build artifacts before archiving or sharing a project.
Original concept by Ardalis.
# Remove from current directory
Remove-ObjBin.ps1
# Remove from a specific path
Remove-ObjBin.ps1 -Path "C:\Work\MyProject"Alias: cheat
Queries cheat.sh and displays the result directly in the terminal — a quick way to look up command-line usage without leaving PowerShell.
Search-CheatSheet -Query "pwsh"
Search-CheatSheet -Query "git"
Search-CheatSheet -Query "docker"Tests are in the tests/ folder and use Pester.
Invoke-Pester -Path ./tests/Codez.Tests.ps1 -Output DetailedTests include syntax validation, parameter checks, and functional tests for Remove-ObjBin.ps1 and Get-PullFromGH.ps1.