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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using System.Xml; | |
using System.Xml.Linq; | |
namespace GithubWikiDoc | |
{ |
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
# for a given cue/bin pair, rename the bin file, rename the cue file with the corresponding name, | |
# and update the bin reference within the cue file to match | |
[cmdletbinding()] | |
param( | |
[Parameter(Mandatory)][io.FileInfo]$sourceBinPath, | |
[Parameter(Mandatory)][string]$newName | |
) | |
$sourceCuePath = [io.path]::ChangeExtension($sourceBinPath, 'cue') | |
write-verbose("sourceCuePath: $sourceCuePath") | |
$sourceBinName = [io.path]::GetFileName($sourceBinPath) |
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
# create an m3u from the given list of files | |
[cmdletbinding()] | |
param( | |
[Parameter(Mandatory)][string] $targetFilePath, | |
[Parameter(Mandatory)][IO.FileInfo[]]$sourceCuePaths | |
) | |
$targetFilePath = [IO.Path]::ChangeExtension($targetFilePath, 'm3u') | |
$m3uBodyArray = $sourceCuePaths | foreach-object { | |
[IO.Path]::GetFileName($_) | |
} |
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
-- The following code works in MS SQL 2019 | |
-- But fails in Postgres 14.12 (PG 14 was released in 2021) | |
DROP TABLE IF EXISTS EMPLOYEE; | |
-- create | |
CREATE TABLE EMPLOYEE ( | |
empId INTEGER PRIMARY KEY, | |
name VARCHAR(50) NOT NULL, | |
dept VARCHAR(50) NOT NULL |
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
Oct23 14:35:59 C:\github\t4BuildDemo With Spaces\test t4 build> dotnet clean | |
Build started 2024-10-23 2:36:04 PM. | |
1>Project "C:\github\t4BuildDemo With Spaces\test t4 build\test t4 build.sln" on node 1 (Clean target(s)). | |
1>ValidateSolutionConfiguration: | |
Building solution configuration "Debug|Any CPU". | |
1>Project "C:\github\t4BuildDemo With Spaces\test t4 build\test t4 build.sln" (1) is building "C:\github\t4BuildDemo | |
With Spaces\test t4 build\test t4 build.csproj" (2) on node 1 (Clean target(s)). | |
2>TextTemplateClean: | |
dotnet exec "C:\Users\zaratem\.nuget\packages\t4.build\0.2.4\build\../tools/T4.Build.dll" clean "Static Text Temp | |
late.tt" "TextTemplate Test Withdate.tt" "TextTemplate That Reads File.tt" |