Hector
banner
hctr.dev
Hector
@hctr.dev
Software developer πŸ”¨ | Self-hoster 🏑 | Lvl 1 game dev πŸ•ΉοΈ | Occasional writer ✏️ | Runner πŸƒ | All welcome πŸ³οΈβ€πŸŒˆπŸ³οΈβ€βš§οΈ | He/Him

Website: https://hctr.dev
Banner image from: https://nightsky.hctr.dev
Pinned
Hector @hctr.dev Β· Nov 15
Hi! I'm Hector πŸ‘‹

Time for a quick #introduction I think:

- Software developer (10+ years)
- Backend & a little frontend
- Go
- Kotlin
- Svelte 🧑
- Exploring gamedev with Godot πŸ•ΉοΈ
- Hosting my own stuff for fun 🏑
- Hiking, nature & traveling
- Learning digital art
- Plant-based 🌱

#promosky
When you schedule messages on Slack, do you mention it was scheduled? πŸ€”

I usually don't, but I often wonder if I should. Just in case something changes between the time I wrote the message and the time it gets received. Is there any "scheduled message etiquette" I should know about?
May 28, 2025 at 10:38 AM
Why is it that banks have such bad security practices when compared to pretty much anything else?

One I came across:
- User IDs are sequential
- Passwords are 7 characters (only numbers)
- 2FA only with SMS
- Login asks for only 3 digits of your 7 number code

🀯
May 24, 2025 at 6:50 PM
In my mind they are different:
API tests run the entire app locally (with some dependencies mocked out) and call the API over HTTP to test the entire flow.
The synthetic monitoring calls APIs in prod.

But maybe what I call API testing isn't the same as what you call API testing πŸ˜„
May 19, 2025 at 4:47 PM
My Factorio experience is a bit like that: huge spikes and then nothing for months/years. At this point I'm afraid to open the game because I know my free time will just disappear πŸ˜„
May 19, 2025 at 4:33 PM
I have no intentions of building this, but I find it fun to explore some of these ideas to see how they might (or not) work πŸ€”
May 18, 2025 at 6:50 PM
The widespread use of AI in coding also makes this tricky, since your code nowadays will likely include a little (or a lot) of code generated by AI, also defeating the point of people "choosing" you because they like your code.

I don't have a good answer for this one. AI to filter out AI code? πŸ˜†
May 18, 2025 at 6:50 PM
You could write code directly into the app, but that somewhat defeats the purpose of it being your "true self", since you would likely polish the code a lot more than you would if you were writing it for an actual project.

By pulling random code from your account I'd hope to show the real you.
May 18, 2025 at 6:50 PM
One challenge would be making sure it's actually your code, and not either something someone else contributed to your repo, or a random repo you just copied and pushed.

Maybe using code from PRs would mitigate this a little?

Or a more complex system to detect and exclude copied code?
May 18, 2025 at 6:50 PM
Random app idea I had yesterday: A dating/meeting app where you find people you are interested in based on each others code.

It would connect to your Github and pull random pieces of code to show other people (nothing else about you). If you both like each other's code you could connect 🫢
May 18, 2025 at 6:50 PM
I hope your Saturday improves!

But I suppose it's a good reminder to set up uptime monitoring/alerts on important services, specially self-managed ones. I know I've been putting it off for a long time 😬
May 17, 2025 at 7:20 AM
This morning I finally took the time to clean out my phone's USB-C port. Now the cable actually goes in all the way and doesn't fall out all the time! So satisfying 😌
May 17, 2025 at 7:13 AM
The Github issue mentions turning off Cloudflare auto minify, but I believe that has been deprecated πŸ€”

In my case it was my own fault - I added a build step to minify the HTML back when I was using 11ty and I kept it after the rewrite to Svelte. I never thought it would be an issue 🀷
May 6, 2025 at 1:18 PM
TIL: Minifying the output HTML of a Svelte build is a bad idea πŸ€”

I noticed HEAD elements were getting duplicated and I couldn't figure out why. Turns out Svelte actually uses comments in the markup to handle updates without duplication! So I broke it by removing them πŸ˜…

github.com/sveltejs/sve...
Duplicate `head` elements occur when html comments are stripped Β· Issue #8112 Β· sveltejs/svelte
Describe the bug The solution to the duplicate content svelte:head element bug (and also this one) requires HTML comments to be present in order to function correctly. Many minification tools strip...
github.com
May 6, 2025 at 1:17 PM
Yesterday I published a complete rewrite of my website! πŸ™Œ
It's now completely written in Svelte

hctr.dev/post/rewriti...
May 6, 2025 at 10:54 AM
I'm rebuilding my website (again) and I'm almost at a point where I'm happy with the new design. But then I go back to the live version and I think "hmm, this looks better than I remembered. Is the new version actually better? Or just different?" πŸ™ƒ
May 1, 2025 at 7:19 PM
Ok, I might give it a try one of these days!

As for the script, the core of it is:
HETZNER_API_KEY="xxx" lego --email mail@domain.com --dns hetzner --domains "*.domain.com" renew

The rest of the script just runs this for a few different domains and moves the certs to the right folder πŸ˜€
May 1, 2025 at 4:27 PM
Yup, just regular crontab to run a 10 line bash script πŸ˜€

The lego CLI does all the hard stuff to get the actual certificate. I just need to run the right command and provide credentials (since I'm using a DNS-based challenge to verify domain ownership)
May 1, 2025 at 3:08 PM
My certificate setup may not be as simple, but I'm happy with it

I have a simple cronjob once a week to renew wildcard certs for my domains using Lego (github.com/go-acme/lego). Then I run a Traefik proxy for all my containers that uses those certs. Haven't thought about it much since I set it up!
GitHub - go-acme/lego: Let's Encrypt/ACME client and library written in Go
Let's Encrypt/ACME client and library written in Go - go-acme/lego
github.com
May 1, 2025 at 10:45 AM
I've been using Portainer for years now and I'm happy with it. Coolify looks tempting, but I don't have a real reason to switch at the moment.

First time I've heard of Dokploy though πŸ€”
April 30, 2025 at 2:17 PM
That looks nice! Thanks for sharing, I haven't come across that before. Might give it a try!
April 30, 2025 at 11:52 AM
Yesterday I finally upgraded my laptop from Linux Mint 21.3 to 22.1!

My favourite "feature" so far is that the fans no longer spin up as soon as I plug in the power 🀯
April 30, 2025 at 10:07 AM
I think it depends, but one big one will be a lot easier to manage and takes a way a lot of complexity. So I would generally go for a single one until I really *need* the benefits that multiple small ones could bring (uptime, scaling, etc)
April 13, 2025 at 11:19 AM
I prefer your version to be honest.
Personally I thought it was pronounced more like "veet" πŸ˜„
April 11, 2025 at 7:16 PM
Came back to an old project I worked on a few years ago. Just wanted to make a few tweaks, nothing major.
Now I'm trying really hard to resist the urge to rewrite it all πŸ™ƒ
March 31, 2025 at 7:16 PM
Maybe I've just got used to it, but personally I prefer Gitlab's UI over Github 🀷

I agree with the main point though, nothing wrong with an open source project copying a familiar layout!
March 28, 2025 at 10:27 PM