Skip to content
View dnakhoa's full-sized avatar
  • Melbourne
  • 03:53 (UTC +10:00)

Block or report dnakhoa

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
dnakhoa/README.md

Anh Khoa Doan Ngoc

Backend and systems engineering. I'm most interested in the part of a system where correctness is provable — invariants, concurrency, data integrity — and in putting the rules somewhere they cannot be bypassed rather than somewhere they are merely followed.

Master of IT, La Trobe University Melbourne.


Selected work

obol-ledger · TypeScript, Postgres, Next.js — live

A double-entry accounting ledger built around the idea that an invariant belongs in the database, not in application code that has to remember it.

  • Entries are balanced by a DEFERRABLE INITIALLY DEFERRED constraint trigger that runs at COMMIT — an immediate one fires after the first posting, when no entry has ever balanced.
  • Tenant isolation is row-level security with FORCE, so a connection that has not named a tenant sees an empty database. A runtime probe asserts the policies are actually in force, because a SUPERUSER connection bypasses them silently.
  • Money is bigint minor units with a currency-exponent registry — JPY has zero decimals, BHD has three — and crosses the wire as exact decimal strings, never JSON numbers.
  • Idempotency claims its key before doing work, inside the same transaction, so a concurrent duplicate blocks rather than races.
  • Concurrency claims are tested against a real Postgres over real connections, and each test was verified by deleting the thing it protects: remove the lock ordering and Postgres reports 40P01 deadlock detected.

system-design-playground · Python

System design from fundamentals through to LLM-backed systems. Free and open.

stockflow

Multi-store inventory redistribution modelled as a minimum-cost flow problem — an optimisation formulation rather than a heuristic.

kelp-dao-hack-analysis · rollbit-scam-report

Incident forensics: the KelpDAO rsETH / LayerZero DVN / Aave interaction, and an investigation into Rollbit Casino. Reading systems adversarially, for what they do rather than what they claim.

everything-data-structures · llm-engineering-playground · frontier-llm-engineering

Teaching material. Writing something down is how I find out whether I actually understand it.


Reach me

LinkedIn

Popular repositories Loading

  1. llm-engineering-playground llm-engineering-playground Public

    A playground for LLM Engineering and Development research

    Python 3

  2. system-design-playground system-design-playground Public

    System Design: From Fundamentals to LLM AI Systems — a free, self-paced 22-module course with diagrams, trade-offs, and real-world case studies

    Python 3

  3. everything-data-structures everything-data-structures Public

    A complete free course on data structures — 5 volumes, 31 chapters, from Big-O to distributed systems.

    Python 2

  4. rollbit-scam-report rollbit-scam-report Public

    Forensic investigation into Rollbit Casino (Bull Gaming N.V.) — 67 documented cases, $495K+ in confiscated funds, $123M Ukraine seizure, and systematic fraud patterns

    Python 1 1

  5. Deakin_SIT210 Deakin_SIT210 Public

    Python

  6. dnakhoa dnakhoa Public

    Config files for my GitHub profile.