Skip to content

Instantly share code, notes, and snippets.

View sarnobat's full-sized avatar

sarnobat

View GitHub Profile

(for practical needs, not building blocks)

See also: https://github.com/sarnobat/unix

ssh through an intermediate when the destination doesn't support ssh

(e.g. using antec) From host that doesn't have ssh:

autossh -M0 -p 222 -R 9001:localhost:22 [email protected]
  • 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