Author: Jude Pereira
-
Upgrading to Debian Bookworm on QNAP TS-112 (also TS-11x/TS-12x)
I decided to host Minio on a QNAP TS-112 device, bought from a second hand store. Here’s a tale of me ditching the QNAP OS in favour of Debian Bookworm.
-
The “Are you sure?” ChatGPT Hack
The more I use ChatGPT, the more I tend to learn about its intricacies and nuances. One of my latest discoveries is the “Are you sure?” hack: Yet another example: Both chats were with 4o. What’s the take away? Make ChatGPT second guess itself, until it arrives at a concrete answer. Lastly, always double check…
-
Colima & Cloudflare Zero Trust on Apple Silicon
Install Colima via Homebrew: Add the Cloudflare Certificate Get inside the VM that Colima spawns: Download the Cloudflare Zero Trust certificate: In the terminal UI that shows up, press enter until the “More” prompt goes away, then ensure that cloudflare.crt is listed in that list. Once verified, trust all the certificates by giving in a…
-
Remapping § to ~ + brightness keys from macOS Sonoma 14.3.1
A year ago, I wrote about bringing the UK keyboard layout closer to the US one on my M2 Air here, however, that suddenly stopped working. While attempting to run the command involved by hand, I realised that it had to be executed as root. Apple updated macOS such that those special keys couldn’t be…
-
KISS: Hand crafted JSON is NOT faster than ObjectMapper
Premature optimisations are evil. Apart from being buggy, they might actually be slower than the industry standard.
-
Mac M1/M2: Keyboard Brightness Keys + Remap § to ~
Remap the section key to the tilde key, and bring back the keyboard brightness keys to the MacBook M1/M2 machines.
-
Cloudflare Zero Trust Gateway and Net Neutrality
Is Cloudflare ruining the entire concept of a distributed internet? Is it on a path to violate Net Neutrality? What can you do to prevent this?
-
Getting the AWS CLI to accept Cloudflare WARP’s root certificate
Download, convert, and install the Cloudflare WARP root certificate into your local set of trusted root CAs, and then tell the AWS CLI to use it.
-
Lessons learnt from ESP NOW
| hardwareFor those of you who aren’t aware of ESP NOW, it’s a communication protocol developed by Espressif for their ESP modules. What began as a simple “hook up my plant lights to HomeKit”, turned into a massive home grown firmware, but more about that in another post. I’ve successfully setup a bunch of ESP 8266…
-
Taming a throttled API with Dynamic Proxies in Java
Recently, at CleverTap, we’ve begun migrating some of our largest clusters to a new protocol (for starters, think ~115 instances at a time). One of the most fun things I’ve had my hands on during this migration was the AWS Systems Manager API. When we scaled up our migrations gradually from a 10 node cluster,…
-
Sending OTA updates over WiFi to your ESP8266
This Christmas, I added a whole bunch of lights powered by 5V power sources. My goal was to switch them on at sunset, and switch them off on sunrise, by using a MOSFET for power control :) While I was doing this, I wanted to send OTA updates of my Lua files to the ESP8266…
-
nRF52840 – CircuitPython 5.0.0 pinout
| hardwareI recently got CircuitPython running on my SparkFun nRF52840 Pro Mini. Compared to what SparkFun says the pin mappings should be, I found them to be quite different. Perhaps they changed with CircuitPython 5.0.0? Here’s what the pin mapping looks like, when superimposed over SparkFun’s pinout diagram: Sources: https://learn.sparkfun.com/tutorials/nrf52840-development-with-arduino-and-circuitpython https://github.com/adafruit/circuitpython/blob/0f003ac5b8312fafb120e86e05eefd2431014d8c/ports/nrf/boards/sparkfun_nrf52840_mini/pins.c
-
nRF52840 – flashing the s340 v6.1.1 SoftDevice
| hardwareThis post is a work in progress (WIP). The result of this experiment is a success. I have flashed my SparkFun nRF52840 mini, and I’m able to run the bicycle combined speed & cadence sensor example. Before we begin, a big hats off to Charles, who brought support for the SparkFun board I have to the…
-
Installing the Nginx Ingress Controller via Helm to a K8s cluster with RBAC enabled
A lot of posts describe how to do this, but are fairly outdated, and do not mention the last supported K8s version. Here’s a tried and tested way to do so via Helm. This has been tested on GKE, with the Kubernetes master version 1.9.7-gke.6: Create the service account for Tiller – the Helm server $…
-
IntelliJ on steroids with G1 GC
Lately, I noticed that IntelliJ started to pause for quite some time during it’s GC cycles, and that it was very frequent when I was editing three files (over 1.2k LOC each) split vertically. The current version of IntelliJ runs on a bundled version of Java 1.8, who’s default garbage collector is Parallel GC. While…