Hector's Avatar

Hector

@hctr.dev.bsky.social

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

1,641 Followers  |  1,517 Following  |  103 Posts  |  Joined: 30.10.2024  |  2.1187

Latest posts by hctr.dev on Bluesky

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?

28.05.2025 10:38 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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

🀯

24.05.2025 18:50 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

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 πŸ˜„

19.05.2025 16:47 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

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 πŸ˜„

19.05.2025 16:33 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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 πŸ€”

18.05.2025 18:50 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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? πŸ˜†

18.05.2025 18:50 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

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.

18.05.2025 18:50 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

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?

18.05.2025 18:50 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

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 🫢

18.05.2025 18:50 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

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 😬

17.05.2025 07:20 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

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 😌

17.05.2025 07:13 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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 🀷

06.05.2025 13:18 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
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...

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...

06.05.2025 13:17 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Yesterday I published a complete rewrite of my website! πŸ™Œ
It's now completely written in Svelte

hctr.dev/post/rewriti...

06.05.2025 10:54 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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?" πŸ™ƒ

01.05.2025 19:19 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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 πŸ˜€

01.05.2025 16:27 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

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)

01.05.2025 15:08 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
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

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!

01.05.2025 10:45 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

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 πŸ€”

30.04.2025 14:17 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

That looks nice! Thanks for sharing, I haven't come across that before. Might give it a try!

30.04.2025 11:52 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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 🀯

30.04.2025 10:07 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

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)

13.04.2025 11:19 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I prefer your version to be honest.
Personally I thought it was pronounced more like "veet" πŸ˜„

11.04.2025 19:16 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

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 πŸ™ƒ

31.03.2025 19:16 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

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!

28.03.2025 22:27 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Very true! If I stop using a language for a while I need to look up so much stuff when I come back to it πŸ˜…

19.01.2025 18:39 β€” πŸ‘ 7    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

🀯 I never knew about this either! Thanks for sharing!

29.11.2024 12:32 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I've generally used other colours anyway for the last while, but more as a style thing 🀷

I never read too much into the colour of heart people use. They are all pretty much the same to me

28.11.2024 06:01 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Apparently the red heart is also being politicised and some people take it as supporting MAGA 🀷
I don't know how many people see it that way though, especially outside the US. It was news to me!

bsky.app/profile/tayl...

28.11.2024 05:58 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Congratulations! And thanks for sharing

I'm curious about pricing, how did you land on your current pricing? Was it based on your time investment? The value it provides? Competitors? Something else?

27.11.2024 11:36 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

@hctr.dev is following 20 prominent accounts