Skip to content

Instantly share code, notes, and snippets.

@Nirjar26
Nirjar26 / VaultLock-Logo-Fetching.md
Last active April 16, 2026 11:07
Fetches, caches, and displays brand logos with a fallback to initials when unavailable.

VaultLock Logo Fetching

Patterns from building an offline password manager in Python/PyQt6. The problem sounds simple: show a logo next to each credential. The implementation is less simple.


Treat the network as optional, always

Logo sources fail. They time out, return 404, or come back with HTML instead of an image. If your UI waits on any of that, the app feels broken.

@Nirjar26
Nirjar26 / AegisMesh.md
Last active April 16, 2026 10:43
A concise note on four IAM patterns: DENY-over-ALLOW authorization, step-up reauthentication for sensitive actions, per-session revocation, and centralized audit

AegisMesh

Patterns I implemented while building a multi-tenant IAM platform. Node/Express/Prisma, but the concepts apply anywhere.

DENY always overrides ALLOW

When a user has permissions from multiple sources (direct role, group membership, attached policy), conflicts happen. The naive approach merges everything and takes the most permissive result. That's wrong for IAM.