blog

Pick a SyntaxHightlighter

I needed a better syntax highlighter than Chroma on Hugo because its Powershell support is laughably bad. There were several that add a bunch of steps every once in a while, but I didn’t super love doing the steps. Then I found that my theme (Blackburn) has native support for highlight.js (which has a much better Powershell parser). This made it as easy as adding a param to my config.toml file:

Troubleshooting AzureSWA

Troubleshooting Azure Static Websites and Hugo I’m setting up a blog! I wanted to try out the build process from github to Azure where I don’t do any of the release side. I dutifully followed the Azure tutorial on publishing from Hugo, but kept getting the error: Error: module "Blackburn" not found; either add it as a Hugo Module or store it in "/github/workspace/themes".: module does not exist ---End of Oryx build logs--- Oryx has failed to build the solution.

Hello World

Hello world. Its a programmer’s first words. Maybe not as a baby, but certainly when the programmer inside is born. $Users = Import-Csv -Path $path #-Delimiter "|" if you export your CSVs with a delimeter of "|" $target = @() $Precheck = $Users.PsObject.Copy() foreach ($User in $Precheck) { remove-variable SAM -ErrorAction SilentlyContinue switch ($user.ou) { "it" {$user.ou = "OU=IT"} "finance" {$user.ou = "OU=Finance"} } } Additionally: if (!($(try {get-adUser -Identity $SAM} catch {}))) { $target += $user | select givenname,surname,emailaddress,campus,ou } else { "User already exists!