wojsznis.eu

Chrome 116+ refusing to ask for camera/microphone permissions (jitsi example)

This is a very brief post as I wasted literally hours of this (mostly running in circles) which turned out to be simply trivial. I hope that maybe it might help some lost soul someday.

Chrome 116+ refusing to ask for camera/microphone permissions (jitsi example)

I have a single 1.4TB mysql table, human help

Data is akin to code - the best data is data that is never stored. Unfortunately, this is not how products operate, and you might find yourself in a situation where data becomes a liability and a burden.

Recently, I have been working on a side project where the majority of the data in the app was stored in a single table. That table grew beyond a maintainable point; major pain points are nothing new, and in my case, it boiled down to:

I have a single 1.4TB mysql table, human help

Backup AWS S3 bucket to external location

Aside from S3 bucket replication feature you might want to backup your data outside of your current cloud provider (for a myriad of valid reasons).

If you’re in Europe you might consider Hetzner which once again offers the best bang for your buck; alternatively - if you’re based in the US - Backblaze might be a better fit. Either way, I recommend using rclone which integrates out-of-the-box with S3 and all the protocols you can think of.

Backup AWS S3 bucket to external location

Getting SSL working for Traefik Dashboard with k3s and cert-manager

k3s ships with traefik that works out of the box, but for certificate generation while running on Kubernetes you should consider using cert-manager which is apparently a go-to tool for certs management in the k8s world.

For the simplicity of this example let’s assume you have a single node k3s cluster running which doesn’t have any external load balance in front of it (otherwise you might need a DNS challenge and here we will use HTTP-01).

Getting SSL working for Traefik Dashboard with k3s and cert-manager

Living the ARM life

Almost right after Hetzner announced their ARM offering on 12th April 2023 I started to experiment with new infrastructure approach. Note: get 20EUR for your project via this referral - just in case you want to play around.

It’s been over a year since I started to play around with Nomad and Nomad served me well. CSI support become more stable and Nomad itself become more mature in terms of feature set (native service discovery and support for encrypted secrets were nice).

Living the ARM life

Auto-ticketing flaky rspec tests

tl;dr: you can try this rspec wrapper and here is a working example regarding how to ticket your flaky tests running on CircleCI using GitHub issues.

One of the common ways of dealing with flaky tests in your test suite is slapping rspec-retry on top of your test suite. Unfortunately, most of the time that’s the end of a solution. Without any sort of logging around it, you’re completely in the dark. Do you know how often things are failing and why? Are you introducing new flaky tests? Are you solving those?

Auto-ticketing flaky rspec tests

How to force Telegram to upload MP4 as MP4 and not GIFs

There is no official way of doing so as far as I know. Small MP4 files without audio are automatically converted into GIFs. But you can trick Telegram into doing what you want - this method seems to be working as of January 2023 on both the iOS desktop app and the official API.

You might want to do that because you cannot group GIFs in an album. It works fine with JPGs and MP4s, but when you mix GIFs into that - the API suddenly throws 400 errors. You can’t create an album of GIFs alone either. Very annoying.

How to force Telegram to upload MP4 as MP4 and not GIFs

How to deploy an application from Github Actions to your Synology NAS

Recently I have been refreshing my various Telegram bots - I had 3 tiny go apps lying around and I have decided it’s time to put them into a single app. I was just done with all that boilerplate and it just made more sense.

While doing so I thought it would be cool to finally push docker containers I was already building using Github Actions directly to my Synology - without any human interaction. The thing is I didn’t want to expose the whole Synology to the Evil Internet. So I have decided to use Tailscale which is a truly magical product. It’s built on top of WireGuard but removes all the manual fiddling/configuration process. It’s install & forget.

Below is a quick-ish recipe I have decided to follow.

How to deploy an application from Github Actions to your Synology NAS

How to remove Linkedin connection (kinda in) in bulk

tldr: it’s not so straightforward and can’t be done that quickly, but you can streamline the process, so it’s not a huge PITA.

My LinkedIn profile literally become LinkedInLunatics subreddit. How did that happen? Oh, I know how, years ago, I just accepted almost every invite from almost every person. Fast forward 9 years later, I got a linked feed with a bunch of coaching BS, crypto boys fanatics, and people just building their audience. I decided it’s time to revisit some of those old contacts.

How to remove Linkedin connection (kinda in) in bulk

Cleaning up side projects

Over the years, I have accumulated various ongoing/past side projects where I tinkered with mostly unstructured stuff.

I decided it was time to let them go. My initial learnings were great, but I realized it’s impossible to keep up with everything while having a full-time job. Maintenance cost - domains, servers/storage, and mostly - time - was not worth the return.

Cleaning up side projects