Inbox¶
Famous People¶
Hedy Lamarr – fled from abuse; became a world famous actress and, just because she could, invented a carbonated drink and sprinkled on top a wireless/radio torpedo guidance system for the allied forces in WW2 (some say is the basis for bluetooth/wireless connections today)
Katherine Johnson – calculated the trajectory for the flight of first American in space Alan Shepard (not sure about that part, I believe she did it with pen & paper)
the NASA computers – hired in the 1930s to, literally, compute complex calculations. (This is, if I remember correctly, where the term computer originates from).
Quotes¶
A jack of all trades Is a master of none, But still always better Than a master of one!
—(Unknown; possibly in reference to William Shakespeare; <https://en.wiktionary.org/wiki/jack_of_all_trades,_master_of_none#English>)
Great minds think alike, but fools rarely differ!
—(Unknown; proverb)
pandoc
¶
Convert a docx file to md:
1&pandoc `
2 --verbose `
3 --from docx `
4 --to markdown `
5 --default-image-extension=png `
6 --extract-media=images `
7 'document.docx' -o document.md
Code Design¶
Functional Core, Imperative Shell¶
Robert C Martin - Functional Programming; What? Why? When? (youtube.com)
Moving IO to the edges of your app: Functional Core, Imperative Shell - Scott Wlaschin (youtube.com)
Todo
FIXME: enable mermaid
1journey 2 title Functional Core, Imperative Shell 3 section Side Effects (Imperative Shell) 4 I/O: 3: Developer 5 Validation: 3: Developer 6 section Pure (Functional Core) 7 Business Logic: 4: Developer 8 section Side Effects (Imperative Shell) 9 Validation: 3: Developer 10 I/O: 3: Developer
Jenkins Snippets¶
1// This was the only script that allowed me to see the zombie job
2jenkins.model.Jenkins.instance.computers.collect { c -> c.executors }.collectMany { it.findAll { it.isBusy () } }.each { it -> println(it.getName()); }
3
4// Try to stop it but didn't work
5jenkins.model.Jenkins.instance.computers.collect { c -> c.executors }.collectMany { it.findAll { it.isBusy () } }.each { it.stop () }
1Jenkins.instance.getItemByFullName("example-folder/example-job-name").getBuildByNumber(69).finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build"));
1Jenkins.instance.getItemByFullName("example-folder/example-job-name").getBuildByNumber(420).finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build"));