This file contains hidden or 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
| # ============================================================================ | |
| # TidyFolder.ps1 | |
| # ============================================================================ | |
| # | |
| # Author: Chris Houston (chouston@vizioz.com) | |
| # License: Open Source - MIT License | |
| # Repository: https://github.com/user/TidyFolder (if applicable) | |
| # | |
| # Description: Organizes files into a structured folder hierarchy based on | |
| # file type, with year-based organization for media files. |
This file contains hidden or 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
| # First run this script with the test parameter to see what it plans to delete | |
| # .\Clean-GitBranches.ps1 -Test | |
| param( | |
| [string]$TopBranch = $(git rev-parse --abbrev-ref HEAD), | |
| [switch]$Test | |
| ) | |
| Write-Host "`n🔍 Scanning for branches merged into '$TopBranch'..." -ForegroundColor Cyan |
This file contains hidden or 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( | |
| [Parameter(Position=0, Mandatory=$false)] | |
| [string]$OldDevCommit, | |
| [switch]$DryRun | |
| ) | |
| function Show-Help { | |
| Write-Host "Usage: .\Rebase-PRs.ps1 <old-dev-commit> [-DryRun]" | |
| Write-Host "" |
This file contains hidden or 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
| // Add this to your program.cs file. | |
| // Output the Umbraco URL for easy access (only when running on localhost) | |
| app.Lifetime.ApplicationStarted.Register(() => | |
| { | |
| var configuration = app.Services.GetRequiredService<IConfiguration>(); | |
| var urls = configuration["ASPNETCORE_URLS"] ?? configuration["urls"]; | |
| // Check if we have localhost URLs or fallback to checking app.Urls | |
| var allUrls = new List<string>(); |
This file contains hidden or 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
| echo off | |
| echo ! | |
| echo ===================================== | |
| echo = Script to migrate from SVN to GIT = | |
| echo = By Chris Houston = | |
| echo = https://www.vizioz.com = | |
| echo ===================================== | |
| echo ! | |
| REM Usage: |