From a75e4aa90ac66c23ea7409a0ce0292fb717d4788 Mon Sep 17 00:00:00 2001 From: sed-i <82407168+sed-i@users.noreply.github.com> Date: Sun, 7 Apr 2024 00:59:31 -0400 Subject: [PATCH] Updates --- docs/blog/degoogle.md | 2 +- docs/blog/five-star-rank.md | 11 +++++++++ docs/index.md | 18 ++++++++++++++- docs/org-culture.md | 10 +++++++++ docs/reading-list/2023.md | 2 +- docs/reading-list/comic-relief.md | 2 ++ docs/software/cheatsheet/bug-report.md | 9 ++++++++ docs/software/cheatsheet/jq.md | 31 ++++++++++++++++++++++++++ docs/software/cheatsheet/text.md | 6 +++++ docs/software/thought/zen.md | 10 --------- docs/zen.md | 7 ++++++ mkdocs.yml | 10 +++++++-- 12 files changed, 103 insertions(+), 15 deletions(-) create mode 100644 docs/blog/five-star-rank.md create mode 100644 docs/org-culture.md create mode 100644 docs/software/cheatsheet/bug-report.md create mode 100644 docs/software/cheatsheet/jq.md create mode 100644 docs/software/cheatsheet/text.md delete mode 100644 docs/software/thought/zen.md create mode 100644 docs/zen.md diff --git a/docs/blog/degoogle.md b/docs/blog/degoogle.md index 2d2afe3..499524b 100644 --- a/docs/blog/degoogle.md +++ b/docs/blog/degoogle.md @@ -17,7 +17,7 @@ tags: ## Pleasant surprises (6 month reflection) - Lifestyle changed from chasing shininess to focusing on privacy and value. -- The are many incredible open source apps (list below). There are only a few apps that are painfully missing (traffic-aware navigation, banking). Often, there is an adequate web ui available. +- There are many incredible open source apps (list below). There are only a few apps that are painfully missing (traffic-aware navigation, banking). Often, there is an adequate web ui available. ## The mindset that would make the transition easier diff --git a/docs/blog/five-star-rank.md b/docs/blog/five-star-rank.md new file mode 100644 index 0000000..52351f9 --- /dev/null +++ b/docs/blog/five-star-rank.md @@ -0,0 +1,11 @@ +# 5-star ranking system + +## Wine + +| Rank | Meaning | +|-------|--------------------------------------------| +| ⭐⭐⭐⭐⭐ | Would drink again and again | +| ⭐⭐⭐⭐ | Good as gift or for hosting | +| ⭐⭐⭐ | A low cost for frequent consumption | +| ⭐⭐ | Could drink but wouldn't choose/buy myself | +| ⭐ | Wouldn't drink even if free | diff --git a/docs/index.md b/docs/index.md index ff93d5d..825a4a9 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1 +1,17 @@ -# 👋 See navbar 👆 +## Playgrounds +[regex](https://regex101.com/), [jq](https://jqplay.org/), [rust](https://play.rust-lang.org), [godbolt](https://godbolt.org/) + +## Editors +### Diagrams +[TablesGenerator](https://www.tablesgenerator.com/), +[Mermaid](https://mermaid.live), +[asciiflow](https://asciiflow.com/), +[Excalidraw](https://excalidraw.com/), +[Witeboard](https://witeboard.com) + +### Text +[Hemingway Editor](https://hemingwayapp.com/), +[StackEdit](https://stackedit.io/app) + +### Other +[YAML parser](https://yaml-online-parser.appspot.com/) diff --git a/docs/org-culture.md b/docs/org-culture.md new file mode 100644 index 0000000..6e6073c --- /dev/null +++ b/docs/org-culture.md @@ -0,0 +1,10 @@ +# Organizational culture + +## Elon Musk's 5-step protocol[^1] +1. Make the requirements less dumb. +2. Try and delete part of the process. +3. Simplify and optimize the design (don't optimize something that shouldn't exist). +4. Accelerate cycle time (but don’t go faster until you've worked on the other three things first). +5. Automate (if a product is reaching the end of a production line with a high acceptance rate, there is no need for in-process testing). + +[^1]: Jeff Haden (2023), [Elon Musk's 'Algorithm,' a 5-Step Process](https://www.inc.com/jeff-haden/elon-musks-algorithm-a-5-step-process-to-dramatically-improve-nearly-everything-is-both-simple-brilliant.html). diff --git a/docs/reading-list/2023.md b/docs/reading-list/2023.md index db06401..eee33e4 100644 --- a/docs/reading-list/2023.md +++ b/docs/reading-list/2023.md @@ -11,7 +11,7 @@ - Frame pointers: [1](https://ubuntu.com/blog/ubuntu-performance-engineering-with-frame-pointers-by-default), [2](https://www.polarsignals.com/blog/posts/2023/12/13/embracing-frame-pointers-in-ubuntu-24-04-lts) - [Debian packaging guide](https://askubuntu.com/questions/1345/what-is-the-simplest-debian-packaging-guide#1451) - [DNS in RAM](https://mullvad.net/en/blog/moving-our-encrypted-dns-servers-to-run-in-ram) -- [Exploratory data analysis with awk](awk.dev/eda.html) +- [Exploratory data analysis with awk](https://awk.dev/eda.html) ## Observability - [Tracing methods](https://thume.ca/2023/12/02/tracing-methods/) diff --git a/docs/reading-list/comic-relief.md b/docs/reading-list/comic-relief.md index 79bc924..b22d4b6 100644 --- a/docs/reading-list/comic-relief.md +++ b/docs/reading-list/comic-relief.md @@ -16,3 +16,5 @@ Linus Torvalds, 2018 - [IP over Avian Carriers](https://en.wikipedia.org/wiki/IP_over_Avian_Carriers) + +- [spurious correlations](https://tylervigen.com/spurious-correlations) diff --git a/docs/software/cheatsheet/bug-report.md b/docs/software/cheatsheet/bug-report.md new file mode 100644 index 0000000..e39fc6b --- /dev/null +++ b/docs/software/cheatsheet/bug-report.md @@ -0,0 +1,9 @@ +# Ideal bug report + +## [Feature Name] Title +## Environment +## Steps to reproduce +## Expected Result +## Actual Result +## Visual Proof (screenshots, videos, text) +## Severity/Priority diff --git a/docs/software/cheatsheet/jq.md b/docs/software/cheatsheet/jq.md new file mode 100644 index 0000000..8700194 --- /dev/null +++ b/docs/software/cheatsheet/jq.md @@ -0,0 +1,31 @@ +# jq + +[Playground](https://jqplay.org/) + +## Merge list of dictionaries + +```json +{ + "root": + [ + { + "name": "k1", + "property": "v1" + }, + { + "name": "k2", + "property": "v2" + } + ] +} +``` + +``` +.root | map({(.name): (.property)}) | add +``` +```json +{ + "k1": "v1", + "k2": "v2" +} +``` diff --git a/docs/software/cheatsheet/text.md b/docs/software/cheatsheet/text.md new file mode 100644 index 0000000..db19397 --- /dev/null +++ b/docs/software/cheatsheet/text.md @@ -0,0 +1,6 @@ +# Text manipulations + +## Replace pattern in all files +```bash +find /path/to/search -type f -exec sed -i 's/old_text/new_text/g' {} + +``` diff --git a/docs/software/thought/zen.md b/docs/software/thought/zen.md deleted file mode 100644 index 076069b..0000000 --- a/docs/software/thought/zen.md +++ /dev/null @@ -1,10 +0,0 @@ -# Zen-collage - -## Dev -### Duplication is far cheaper than the wrong abstraction -- [Sandi Metz, 2016](https://sandimetz.com/blog/2016/1/20/the-wrong-abstraction) - - -## DevOps -### Pin libs to major version and apps to exact dependencies -- [Nathaniel J. Smith, 2017](https://stackoverflow.com/questions/28509481/should-i-pin-my-python-dependencies-versions/44938662#44938662) diff --git a/docs/zen.md b/docs/zen.md new file mode 100644 index 0000000..4249c4c --- /dev/null +++ b/docs/zen.md @@ -0,0 +1,7 @@ +# Zen-collage + +- Duplication is far cheaper than the wrong abstraction.[^1] +- Pin libs to major version and apps to exact dependencies.[^2] + +[^1]: [Sandi Metz, 2016](https://sandimetz.com/blog/2016/1/20/the-wrong-abstraction). +[^2]: [Nathaniel J. Smith, 2017](https://stackoverflow.com/questions/28509481/should-i-pin-my-python-dependencies-versions/44938662#44938662). diff --git a/mkdocs.yml b/mkdocs.yml index eac04aa..a40b49b 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -5,10 +5,15 @@ remote_name: origin remote_branch: gh-pages nav: + - Home: + - Bookmarks: index.md + - 'Zen-collage': 'zen.md' + - 'Organizational culture': 'org-culture.md' - Blog: - 'Degoogled android phone': 'blog/degoogle.md' - 'eBPF summit 2023 CTF': 'blog/ebpf-summit-2023-ctf.md' - Sodastream: 'blog/sodastream.md' + - '5 stars': 'blog/five-star-rank.md' - 'Reading lists': - '2024': 'reading-list/2024.md' - '2023': 'reading-list/2023.md' @@ -17,8 +22,6 @@ nav: - Process: 'reading-list/process.md' - 'Comic relief': 'reading-list/comic-relief.md' - Software: - - Thought: - - 'Zen-collage': 'software/thought/zen.md' - Cheatsheet: - Git: 'software/cheatsheet/git.md' - "*craft": 'software/cheatsheet/starcraft.md' @@ -29,6 +32,9 @@ nav: - 'SSH': 'software/cheatsheet/ssh.md' - 'Privacy online': 'software/cheatsheet/privacy-online.md' - 'Exif tool': 'software/cheatsheet/exiftool.md' + - 'Bug report': 'software/cheatsheet/bug-report.md' + - jq: 'software/cheatsheet/jq.md' + - text: 'software/cheatsheet/text.md' terminal-theme: &terminal-theme name: terminal