Scratch

pandoc

Convert a docx file to md:

&pandoc `
 --verbose `
 --from docx `
 --to markdown `
 --default-image-extension=png `
 --extract-media=images `
 'document.docx' -o document.md

Code Design

Functional Core, Imperative Shell

journey title Functional Core, Imperative Shell section Side Effects (Imperative Shell) I/O: 3: Developer Validation: 3: Developer section Pure (Functional Core) Business Logic: 4: Developer section Side Effects (Imperative Shell) Validation: 3: Developer I/O: 3: Developer

Install Visual Studio 2022 Build Tools

winget install -e `
  --id Microsoft.VisualStudio.2022.BuildTools `
  --override "--wait --quiet --addProductLang En-us --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended"

Jenkins Snippets

// This was the only script that allowed me to see the zombie job
jenkins.model.Jenkins.instance.computers.collect { c -> c.executors }.collectMany { it.findAll { it.isBusy () } }.each { it -> println(it.getName()); }

//Try to stop it but didnt work
jenkins.model.Jenkins.instance.computers.collect { c -> c.executors }.collectMany { it.findAll { it.isBusy () } }.each { it.stop () }
Jenkins.instance.getItemByFullName("example-folder/example-job-name").getBuildByNumber(69).finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build"));
Jenkins.instance.getItemByFullName("example-folder/example-job-name").getBuildByNumber(420).finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build"));

Backlinks