DerpyCoder

DerpyCoder

@derpycoder.bsky.social

Engineer by Passion Backend + Frontend #golang, #templ, #tailwindcss, #alpinejs, #htmx Database #clickhouse, #sqlite Devops #kubernetes, #taloslinux, #hetzner Workhorse #nvim, #zellij, #wezterm, #starship #selfhosting, #indiehacking, #microsaas

156 followers288 following278 posts

Pinned

Todo Lists are boring, so I made it sortable. Initially I thought about using floats as sort order, but soon discovered floating-point errors. I came across LexoRank algo, that engineers at Atlassian came up with, and here's the result. #golang, #lexorank, #sqlite, #htmx, #alpinejs, #tailwindcss

What’s RapidAPI alternative to sell APIs? This stops me from using them: “RapidAPI currently only pays out API providers via PayPal” PayPal, is a no-no for me. #buildinpublic, #golang, #indiehackers

It’s ironic how lighthouse is written in JavaScript, given it’s a “performance” testing tool. Was it not possible for it to be written in performant language? Is there a #rust or #golang based alternative to #lighthouse, that’s blazingly fast 🚀?

What are some budget thocky keyboard everyone’s using? Keychron K2 is dying on me. It worked great for my need. Now the ‘tab’ and ‘q’ keys are notchy and not so responsive. Just happened after I switched to nvim!

YouTube on web is leaking memory! One tab reached 1.2 GB, WTF? Here I am, trying to reduce the memory footprint while developing by, using only CLI tools, and open browser tabs are eating up ram. Hardware developers must really hate web developers. What a waste of resources. 🤦

Hey Guys, Check this out, I don’t need this as I have one server, but if you are a power user, checkout Omni. It will make managing Kubernetes on Baremetal or Cloud easy! Our own managed Kubernetes!! #golang, #kubernetes, #taloslinux, #buildinpublic www.youtube.com/watch?v=fZMk...

youtube.comIntroducing OmniYouTube video by Sidero Labs
Sidero@siderolabs.com

Happy new year bare metal Kubernetes enthusiasts 🎉 We’re starting off the year with a gift 🎁 Repost ♻️ and like ❤️ this post and we’ll pick 10 people to give a free year of Omni SaaS ($120 value) Follow us on other platforms for more chances to win Winners will be announced on Jan 2nd

I have made lots of art, both good and bad. I have never felt attached to any AI art that I generated, unlike the ones I painstakingly created. I don’t think I will get attached to AI generated code either. I see why and how it’s increasing velocity for others. But it’s not for me.

I was somewhat lucky to have started my studies with C, C++ so I got to understand what was happening to the computers. Then I dipped my hands in with LAMP stack, so I got to understand web apps. I saw bootcamp developers using React, with no grasp on Javascript. I fear what AI will do to them!

Anybody know how to prevent such switches, like prevent the cookie from being overwritten by Honey? From #golang, #buildinpublic, anyone? Like anti honey scripts or something? These guys are running since 2017, it's almost 2025 and still they are there!!

Just lost lots of open tabs on Firefox, again. Last week Chrome failed to restore my tabs. Tabs were open, but the site link was gone. What’s up with these unreliable pieces of tech. Chrome used to be fast, now it boots up slow. I have to now go through history to recover what’s lost.

Bluesky video upload limit is annoying, so I read around to find out the best format and how to reduce the size of my videos. Here's the magic incantation: `ffmpeg -i input.mp4 -vcodec libx264 -crf 20 -preset medium -acodec aac -b:a 128k output.mp4` This got my video from 181 Mb down to 852 Kb!

We can use the flag `-an`, if there's no audio necessary. However I still got the same size output, so I didn't use it. Perhaps I should create some #golang tools based on #ffmpeg, just to avoid typing on the cli.

Bluesky video upload limit is annoying, so I read around to find out the best format and how to reduce the size of my videos. Here's the magic incantation: `ffmpeg -i input.mp4 -vcodec libx264 -crf 20 -preset medium -acodec aac -b:a 128k output.mp4` This got my video from 181 Mb down to 852 Kb!

Here's what those flags do: -vcodec (H.264) -preset (VerySlow to VeryFast) (HighQuality to LowQuality) -crf (0 - 63) (Lossless to Lossy) -acodec (Audio Encoder) -b:a (Audio Bitrate) To see all supported codecs, you can run `ffmpeg -codecs` #ffmpeg

I’m never trusting any starter pack ever again!! I saw an account with 1 post, another a domain squatter, some filled with starter packs to the brim, and marketers with no substance just call to actions! And somehow they have managed to weasel their way into creator/indiehacker starter packs!

I got everything right, with asset loading and what not, My custom Asset Pipeline helped me achieve this perfect score. Along with Brotli, Cache-Control Immutable, Client Hints, Highway Hash, Text Minification! Now, how do I reduce the TTFB? Anyone? Varnish or CDN? For MVP? Also, #golang rocks!!

Yay, Asset Pipeline is shaping up nicely. Todo: - [ ] PNG/WebP/AVIF conversions, with different sizes - [ ] Snippets with dynamic styling & lexers - [ ] Import Maps, perhaps in `gob`, so the imports in #templ can be dynamic - [ ] ffmpeg for gif or videos - [ ] Changing imports to use hash #golang

Since I added minification to the pipeline, I can just import non minified JS dependencies, and the pipeline will take care of it down the line. I know this comes built into the modern frameworks, but I like my approach. I can add my own formats, like `.snip` files, for snippets! #golang

2.2 Kibibytes, down to 337 bytes, for a barebones JS file I had to write. 101 Kibibytes, down to 11 Kibibytes, for a fairly large Tailwind css file. #brotli & #golang rocks!

Conversely, The famous glob pattern `**/*.md`, is not supported. You would have to do `/*/*/*/*`, which only allows matches up to 4 nested levels, to match any files or folder!

I made a mistake of just clicking follow all in starter packs. Now I have close to 750 Followings, with whom I didn’t build any rapport. There are lots of marketer in the mix and people with tech stack with which I can’t relate. I want to go back to people I interacted with. 😮‍💨

I’m so picky when it comes to tech stack I use for side projects that I can’t bring myself to self host inefficient tools or services. So all the savings that I bring myself, will get overwritten by those tools. Node for Nextjs frontend, Ruby on Rails, MySQL or Mongo, Redis. The entire circus!