Skip to content

Instantly share code, notes, and snippets.

View pkutaj's full-sized avatar

pavol kutaj pkutaj

View GitHub Profile
@pkutaj
pkutaj / tmpxrpiolrp.txt
Created July 16, 2026 11:55
Explaining my troubleshooting process snippet
#### observe
- [ ] what.symptoms
- [ ] what.sketch
- [ ] scope.baseline
- [ ] scope.blast_radius
- [ ] evidence.logs
- [ ] evidence.docs
- [ ] evidence.metrics
- [ ] evidence.config
- [ ] when.timeline
@pkutaj
pkutaj / tmprwa78m_p.sh
Created July 15, 2026 12:20
Explaining mktemp on macOS and neovim diff mode snippet
f=$(mktemp) # mktemp prints path → $() captures it → f holds the string
# the file already exists on disk at this point
@pkutaj
pkutaj / tmpzst9c9vt.sh
Created July 15, 2026 12:20
Explaining mktemp on macOS and neovim diff mode snippet
f=$(mktemp -t drr_a)
mv $f{,.md}
f="$f.md"
@pkutaj
pkutaj / tmpubjkka0r.sh
Created July 15, 2026 12:20
Explaining mktemp on macOS and neovim diff mode snippet
nvim -d file_a file_b # open two files in diff mode
@pkutaj
pkutaj / tmppphf5psj.vim
Created July 15, 2026 12:20
Explaining mktemp on macOS and neovim diff mode snippet
:diffsplit file_b " open file_b as diff split
:diffthis " mark current window as diff
:diffoff " exit diff mode
@pkutaj
pkutaj / tmptbkdnm69.md
Created July 15, 2026 07:02
Explaining ai adoption diary july 2026 cracks in the bubble snippet
Tier When What you get
Vibe-code (AI only) MVPs, internal tools, prototypes Features, no theory, throwaway
Hybrid Most production work You hold the theory at API/type level, agent fills bodies
By hand Projects you care about deeply Full theory, full ownership, full changeability
@pkutaj
pkutaj / tmp8va8uk13.md
Created July 14, 2026 07:09
SICP 1.6 — Primitives, Combinations, Abstractions in Scheme snippet
NR PRIMITIVE CAT PRIMITIVE AREA
1. Literals Integer: 42, -7 Rational: 3/4 Real: 2.78, -1.2e-5 Complex: 3+4i Boolean: #t #f Char: #\a #\space String: "hello"
2. Arithmetic + - * / quotient remainder modulo expt abs max min gcd lcm floor ceiling truncate round
3. Comparison < > = <= >= eq? eqv? equal?
4. Bitwise arithmetic-shift bitwise-and bitwise-or bitwise-xor bitwise-not (SRFI-60 / R7RS)
5. Cast exact->inexact inexact->exact number->string string->number char->integer integer->char symbol->string st
@pkutaj
pkutaj / tmpq8jqg8bb.scheme
Created July 14, 2026 07:09
SICP 1.6 — Primitives, Combinations, Abstractions in Scheme snippet
(operator operand ...)
@pkutaj
pkutaj / tmpkmhpc989.scheme
Created July 14, 2026 07:09
SICP 1.6 — Primitives, Combinations, Abstractions in Scheme snippet
;👇* operator followed by operants in ()
;👇operands.....
(+ 3 (* 5 6) 8 2)
;👆operator
@pkutaj
pkutaj / tmpayqyt9mt.scheme
Created July 14, 2026 07:09
SICP 1.6 — Primitives, Combinations, Abstractions in Scheme snippet
(define a (* 5 5))