Skip to content

Instantly share code, notes, and snippets.

@vdavid
Created April 9, 2026 23:23
Show Gist options
  • Select an option

  • Save vdavid/77f9a3538ba98d8622fcc07fd757b6f3 to your computer and use it in GitHub Desktop.

Select an option

Save vdavid/77f9a3538ba98d8622fcc07fd757b6f3 to your computer and use it in GitHub Desktop.

Daily wrap: 2026-04-07 (Mon)

Coding work

Project Commits Added Deleted Net Summary
smb2 40 +38,628 -2,236 +36,392 Built an entire SMB2/3 client library from scratch in one day. Wire format for all 19 commands, NTLM auth, signing (HMAC-SHA256/CMAC/GMAC), encryption, compound requests, pipelined I/O, streaming downloads, file watching, CI, benchmarks. Beats native macOS SMB on all operations.
cmdr 13 +6,725 -1,064 +5,661 MTP move conflict bugs fixed, 8+ new MTP E2E tests, a11y contrast fixes, Docker tooling improvements, watcher cache invalidation bug fix, released v0.10.0
mtp-rs 4 +463 -18 +445 Added rescan_virtual_device and pause_watcher APIs for E2E test reliability, released v0.8.0 and v0.9.0
Total 57 +45,816 -3,318 +42,498 Built smb2 crate from zero to production-grade, shipped Cmdr v0.10.0 with MTP fixes, published two mtp-rs releases

Timeline

12:23  cmdr    Bugfix: MTP watcher misses external files
13:47  cmdr    Testing: Fix E2E flakiness and a11y contrast
13:48  cmdr    Tooling: E2E scan restriction for Linux Docker indexing
14:54  smb2    Initial commit: project scaffold
15:19  smb2    Resolve all open questions, add missing features
15:26  smb2    Phase 1: pack/unpack primitives, newtypes, and flags
15:37  cmdr    Tooling: Add SMB benchmark (native vs direct)
15:46  smb2    Phase 2: wire format messages for all 19 SMB2 commands
16:02  smb2    Fix P2 audit issues: offsets, allocation caps, real-server tests
16:30  ----    πŸ“ž Call (30 min)
16:37  smb2    Phases 3+4: error types and transport layer
17:09  smb2    Phase 5: signing, encryption, key derivation, compression
17:31  smb2    Phase 6: NTLM authentication (MS-NLMP)
17:36  smb2    Fix insecure PRNG in NTLM challenge and session key
17:36  mtp-rs  Add rescan API for virtual devices
17:37  mtp-rs  Prepare v0.8.0 for release
17:44  cmdr    MTP: Add E2E tests, fix the bugs found by them
17:50  smb2    Phase 7 wave 1: sequential client and RPC module
18:04  smb2    Fix three signing bugs found via NAS integration testing
18:12  smb2    Add structured logging via log crate
18:16  smb2    Fix preauth hash exclusion
18:51  smb2    Fix QueryDirectory + Raspberry Pi integration test
19:02  smb2    Phase 7 wave 2: file operations, pipeline, integration tests
19:39  smb2    Phase 7 wave 3: share enumeration, SmbClient, reconnection
19:50  smb2    Add concurrent pipelined read and write
20:34  smb2    Upgrade pipeline to use MaxReadSize/MaxWriteSize
23:50  smb2    Phase 8: polish public API
00:14  smb2    Add streaming I/O, progress reporting, flush, cancellation
00:43  smb2    Add three-way SMB benchmark
01:26  smb2    Sliding window pipeline + credit request bump
01:30  smb2    Add micro-benchmark and smart read selection
01:46  cmdr    Bugfix: Fix Tauri plugin version mismatch
01:49  cmdr    Tooling: Auto-invalidate Docker node_modules on lockfile change
01:50  cmdr    Testing: Fix false-positive a11y contrast failures
02:00  cmdr    chore(release): update latest.json for v0.10.0
02:11  cmdr    Bugfix: MTP move conflicts no longer silently overwrite
02:29  smb2    Benchmark overhaul: F_NOCACHE, --skip-smb, findings doc
02:34  cmdr    MTP: Add E2E tests for move conflicts and large files
02:40  smb2    Add compound CREATE+READ+CLOSE requests
02:44  smb2    Benchmark: use compound reads β€” smb2 beats native everywhere
02:52  mtp-rs  Add pause_watcher API for virtual devices
03:25  smb2    #1: read_file auto-uses compound
03:31  smb2    #2: compound write CREATE+WRITE+FLUSH+CLOSE
03:32  smb2    #4: Test compound on Raspberry Pi
03:33  smb2    #5: Fix cargo doc warning
03:34  mtp-rs  Prepare v0.9.0 for release
03:35  smb2    #6: Update README with final benchmark numbers
03:38  cmdr    Bugfix: Fix MTP E2E flakiness from watcher race
03:41  smb2    #3: streaming upload with compound + Pi roundtrip test
03:45  cmdr    chore(release): v0.10.0
04:03  smb2    Add GitHub Actions CI
04:04  smb2    Add disk space query (fs_info)
04:14  smb2    Remove hardcoded NAS password
04:25  smb2    Add file watching (CHANGE_NOTIFY) + .env support
04:30  smb2    Fix formatting (cargo fmt)
04:35  smb2    Add 3 new examples, update all to use env vars
04:39  smb2    Fix lifetime elision clippy errors on Rust 1.85
04:41  smb2    Add .gitattributes for LF line endings

Calendar

  • 16:30–17:00 Intro call β€” 30 min

One meeting, nearly the entire day was open for deep work.

Email highlights

Sent:

  • Replied to payroll accountant β€” March same as Feb, quick admin
  • Confirmed beta reader agreement for Tim Urban's new book (Wait But Why)
  • Declined a consulting call, cleaned up routing for future requests
  • Hotel booking inquiry β€” asked for bank details to pay

Received:

  • Alicia (Wait But Why) sent the book chapter β€” beta reading assignment landed
  • Scheduled the intro call with a Series A startup, senior eng role
  • Airbnb confirmed a July reservation, canceled another one
  • crates.io confirmation: mtp-rs v0.8.0 published successfully

Cmdr analytics snapshot

  • Awareness: 15 page views, 15 unique visitors across both sites (quiet day, -57% vs prior)
  • Downloads: 34 in the 24h window, 50% are v0.10.0 (the version just released). US (53%) and UK (41%) dominate
  • Active users: 32 update checks, mostly on v0.9.1 β€” v0.10.0 just starting to show up (2 checks)
  • Revenue: $0

Evaluation

This was an extraordinary day. 57 commits across three projects, +42K net lines. The headline: an entire SMB2/3 client library built from scratch β€” 40 commits, 38K+ lines, going from initial scaffold to a crate that benchmarks faster than native macOS SMB on every operation. That's phases 1 through 8 of the protocol implementation, NTLM auth, three signing algorithms, compound requests, pipelined I/O, streaming downloads, file watching, CI, real-world benchmarks against two NAS devices, and polished public API with examples. In a single day.

On top of that, Cmdr v0.10.0 shipped, two mtp-rs releases were published, several real bugs got fixed (MTP move silently overwriting, watcher cache invalidation), 13+ E2E tests were written, a11y contrast issues were fixed, and Docker tooling was improved.

The flow pattern is striking: Cmdr fixes in the morning, smb2 kicked off at ~15:00, a 30-min call at 16:30, then an unbroken 12-hour coding streak on smb2 until 4:41am β€” weaving in Cmdr releases and mtp-rs work during natural pause points. Deep focus to an almost alarming degree.

The download numbers are encouraging: half the downloads are already v0.10.0, meaning the update mechanism is working and people are staying current. UK showing 41% of downloads is a concentration worth watching.

Honest note: the 5am finish is a pattern to be mindful of. The output is undeniably impressive, but sustainability matters when building a product solo. The quality of the smb2 work (security fixes, real-device testing, benchmark methodology) shows it wasn't sloppy late-night code β€” but still.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment