avatar

KZK's blog

Lead engineer

GildedRose Refactoring Kata 01-13-2021

GildedRose Refactoring Kata 01-13-2021: #TIL 🔗::: anki 04a33975-212f-4087-80d4-e0d909efc835 GildedRose is a kata to practice your refactoring skills #Flashcard ::: https://github.com/emilybache/GildedRose-Refactoring-Kata

Kitty terminal cheatsheet

Ctrl + Shift + T -> Open new tab Ctrl + Shift + Q -> closes tab Ctrl + Shift + (left or right) -> move between tabs Ctrl + Alt + Shift + t -> set title of the tab Ctrl + Shift + Enter -> Create a new window Ctrl + Shift + l -> change layout Ctrl + Shift + v -> paste from clipboard (specially interesting from linux)

NVM fast in mac

I normally use nvm to have multiple node versions, a lot of projects need older versions of node etc… but nvm makes zsh load extreamly slow… and this just irritates me xD here are the steps to install nvm, and configure it to load nvm not in the start of the shell, but only when we execute node. credits to https://til-engineering.nulogy.com/Slow-Terminal-Startup-Tip-Lazy-Load-NVM/ Install nvm with brew brew install nvm configure nvm in your .

Atomic Habits

Atomic Habits 🔗Chapter 1 - The surprising power of atomic habits 🔗 Habits are compound interest of self-improvement Sadly, the feedback look of habit is slow paced, makes easier to have bad habits Put your eye in the process (and where it will lead you) than in the current result. It’s hard to have good habits that last, cause we fail to see tangible results, and in a weak moment we decide to stop But in order to make a meaningful difference, habits need to persist long enough to break through the Plateu of Latent Potential Time magnifies the margin between success and failure, having small good habit is going to make time your ally.

Atomic Habits

Atomic Habits 🔗Chapter 1 - The surprising power of atomic habits 🔗 Habits are compound interest of self-improvement Sadly, the feedback look of habit is slow paced, makes easier to have bad habits Put your eye in the process (and where it will lead you) than in the current result. It’s hard to have good habits that last, cause we fail to see tangible results, and in a weak moment we decide to stop But in order to make a meaningful difference, habits need to persist long enough to break through the Plateu of Latent Potential Time magnifies the margin between success and failure, having small good habit is going to make time your ally.

Observability and DKIW model

DKIW (Data, Knowledge, Information and Wisdom) model, identifies the path to extract meaningful information from raw data and convert it into rules for decisions. For system observability, this is quite interesting. There is normal levels of maturity in this systems. No recollect logs/data at all Recollect logs but not centralized (Data) Recollect logs centralized, but without alarming (Information) Creation of metrics for health systems (Wisdom) -> lots of times with alarms References 🔗 Data Demystified — DIKW model - https://towardsdatascience.

Descendint Through a Crowded Valley - Benchmarkiing Deep learning optimizers

From https://www.youtube.com/watch?v=DiNzQP7kK-s A paper that does some benchmarking what optimizers to use. One thing I liked is the list of all the optimizers and schedulers there are. Conclusion 🔗::: anki 34307583-9dce-48e7-b0f4-e4e59059368e Which is the best optimizer for DL? Adam or SGD with momentum #Flashcard :::

Crucial Conversation

Chapter 1 🔗:::: anki 6365a6b2-7296-482f-af37-1164cb207054 What is a crucial conversation, one that has: high stakes, emotions and opposing opinions #Flashcard ::: Chapter 2 - Power of dialog 🔗::: anki 9cd0c219-28f1-448d-bea3-ad6b27051a24 Fool’s choice paradox you have only two options, tell the truth and make an enemy or suffer in silence #Flashcard ::: 👆 is a lie! Fill the pool of shared meaning People who are skilled at dialoge, do their best to make it safe for everyone to add meaning to the pool of shared meaning The pool of shared meaning is the birtplace of Sinergy

Radical Candor

Chapter 1 🔗Bosses guide a team to achieve results Guidance: or feedback -> often we don’t give good guidance cause we don’t know how the other will receive it (fear of being socially awkward, I am being to nice or too mean? ) Team Building: Figuring out right people for the right role (hiring, firing, promoting). And when the team is set… how to have them motivated. Results: Relationship, and no power, drive you forward

envsubst

if you find yourself doing something with sed to replace a file with some env variable… well there is a small tool that does it for you! cat file.txt | envsubst > file_with_subst.txt