HNHacker News
TopNewBestAskShowJobs

courtcircuits

13 karma · joined February 17, 2025

submissionscomments
courtcircuits··on What `for x in y` hides from you – From Scratch Code
To be fair, when I started learning CS, the `for x in y` syntax was cryptic to me because I was unfamiliar with concepts such as iterators & generators. `for(int i=0; i<len(y); i++)` made way more sense since there is no hidden logic (besides additions as you highlighted in your comment, but which I think is easier to have a grasp of). So I really wish I had read this article when I started my CS journey a couple of years ago.
courtcircuits··on MinIO repository is no longer maintained
Yep I know, I had to build a proxy for s3 which supports custom pre-signed URLs. In my case it was worth it because my team needs to verify uploaded content for security reasons. But for most cases I guess that you can't really bother deploying a proxy just for CORS.

https:/github.com/beep-industries/content

courtcircuits··on MinIO repository is no longer maintained
Go for Garage, you can check the docker-compose and the "setup" crate of this project https://github.com/beep-industries/content. There are a few tricks to make it work locally so it generates an API key and bucket declaratively but in the end it does the job
courtcircuits··on MinIO repository is no longer maintained
From my experience, Garage is the best replacement to replace MinIO *in a dev environment*. It provides a pretty good CLI that makes automatic setup easier than MinIO. However in a production environment, I guess Ceph is still the best because of how prominent it is.
courtcircuits··on Hypervisor in 1k Lines
This repo seems to handle VM exits and memory initialization : https://github.com/soulxu/kvmsample/blob/master/main.c

I'd say it's a good place to start !

courtcircuits··on Prime Number Grid
Gonna make API calls to that next time I need to generate an Elgamal key pair
courtcircuits··on Lumo: Privacy-first AI assistant
> Lumo’s code is open source

Where's the source code ? I couldn't find it yet.

courtcircuits··on Hacking Dagger to Play Starcraft
A few weeks ago, I attended a hackathon held by Dagger, where I managed to run a Windows XP virtual machine in Dagger to play Starcraft with just a few lines of code. This article is a write-up of how my friends and I did it. It addresses the challenges we faced, and some good things to know when it comes to virtualization. Hope you'll enjoy it! :)