Skip to content

Instantly share code, notes, and snippets.

View vdavid's full-sized avatar
🏠
Working from home

David Veszelovszki vdavid

🏠
Working from home
View GitHub Profile

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
@vdavid
vdavid / a.md
Last active April 8, 2026 18:06
Claude Code detective game: which SMB library was vibe-coded vs human-built?

Can Claude tell which SMB library was vibe-coded?

Two Rust SMB client libraries. One built by a human over a year, the other vibe-coded in a day by someone who didn't know much Rust. Claude Code tries to figure out which is which, just by reading the code.


David: I have /tmp/smb2/ and /tmp/smb-rs/, two libs for the same thing. One of them is written with hard human work over 1 year, the other one is vibe coded in a day by someone who didn't even know much Rust. Without looking at .git and the file dates, and not using any subagents to do research work, WDYT, which one is which, based on code quality and lib usability?

Read like 1-1 files of each lib at a time, then speak out your thoughts-in-progress loud so I understand where you are in the process of figuring it out :)

@vdavid
vdavid / viewer.html
Created March 27, 2026 12:01
Cmdr 3D shape gallery — 30 interactive SVG shapes with hover animations
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cmdr 3D shape gallery</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
@vdavid
vdavid / OrientationFixer.mjs
Last active August 15, 2023 17:45
ES6 class with zero dependencies that determines the orientation of a JPEG file, front end or back end. Returns raw orientation, but can also give a CSS transform string to use for <img style="...">. Can also convert the file to a base64 string to use as the <img src="...">. Check out the demo file below for an example on how to use it.
export default class OrientationFixer {
/**
* @param {File} file
* @returns {Promise<int>}
*/
async determineOrientation(file) {
const data = await this._readFileToArrayBuffer(file);
const dataView = new DataView(data);
return this._isJpegFile(data, dataView) ? (this._getOrientationValueFromJpegData(dataView) || 1) : 1;
};