Skip to content

Instantly share code, notes, and snippets.

View sarnobat's full-sized avatar

sarnobat

View GitHub Profile
  • TODO: using the noun-verb grammar (https://irian.to/blogs/mastering-vim-grammar), systematically show the 7 different types of commands

  • TODO: 2025-03-15 - add lots and lots and lots of examples like perl (https://catonmat.net/introduction-to-perl-one-liners). Start with g// and v// commands for example; or g- commands and z- commands; combos, not individual letters like cheat sheets and manpages do, the power is in composability.

    • Instead of giving the learner rules of how perl/vim/zsh works, give examples with redundancy. That will lead the learner to reverse engineer the rules. Making them derive the rules will automatically make them internalized which is what you want. Example based learning just neural networks
    • more like the zsh draft 2: https://gist.github.com/sarnobat/e648080b72bd50012a3ccde733079c3a
    • Not a grammar. But paths in the grammar.
  • :2,10s/pick/squash/g

  • :,10s/pick/squash/g

---
title: Raw Asseets to Published Products
---
flowchart TB
    n1[apple notes]
    n2[new.mwk]
    n3[snippets/.../snpt_*.mwk]
 n4[microlearning.git/*.md]

Mac OS new profile setup

  • Whenver too much bloat accumulates in a profile, or you get a new machine.
  • Get from ~/computers.git/2022/mac/bin/2022/mac_install_new_profile.sh
  • These are ranked in a hybrid order of priority (i.e. annoyingness) x difficulty

SSH enable

Remote Desktop enable

Sudo Passwordless

(draft 1) Obscure Shell Syntax

  • Like irregular verbs in a foreign language, the most common primitives are optimized for brevity rather than consistency, so often are illogical and idiomatic (you have to "just memorize" them to get the benefit).
  • --I'm organizing this by symbol rather than concept since there is a universal closed set of characters, but concepts have subjective implicit meaning (like key bindings)

$

  • $'' - verbatim string, no interpretting (useful if you have filenames with non ASCII characters)

    • $"" - verbatim string, no interpretting (except locale)