Skip to content

Instantly share code, notes, and snippets.


Software development hard truths

  • Dead Space development struggling to integrate changes from multiple teams/experts:
  • Desktop apps: once in a while you kill a process eating all you RAM. Web apps: once in a while you kill the Google Chrome GPU task eating all your RAM after you open a GIF.
  • Today's browser wars: migrating a customer's 100s open tab from Chrome to Firefox/Edge/Opera/Safari.
  • Why it is important to make experimention cheap.
  • The origin of Control Plane vs Data Plane and how the concept influenced UNIX design
juniorz /
Last active Aug 8, 2022
Tools of trade


time telnet 80

GET / HTTP/1.1
Connection: keep-alive

juniorz / dns.go
Last active Jun 14, 2022
XMPP SRV dns over Tor
View dns.go
package xmpp
import (
juniorz /
Last active May 12, 2022
Annoying Kubernetes Issues

kubectl logs has quirks due to log-rotation

kubectl logs does not take into account container log rotation (kubelet config containerLogMaxSize and containerLogMaxFiles). You can still find the latest rotated logs in /var/log/pods/<namespace>_<pod-name>_<pod-uid>/ though.

Don’t assume --since=0s will have all logs since the container started because it won't look into previous log files. Don't assume a long-running --follow will always give you latest logs, because it will not switch over to the new log after current is rotated.

See: kubernetes/kubernetes#59902

KUBECONFIG is not portable

juniorz /
Created Jul 14, 2011
Installing PostGIS on Mac OS X and Ubuntu
# Some good references are:
#1. Install PostgreSQL postgis and postgres
brew install postgis
initdb /usr/local/var/postgres
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
juniorz /
Last active Dec 3, 2020
Building tor on WD My Cloud EX2

How to build tor for WD My Cloud EX2

WD My Cloud EX2 has an Marvell Armada-370 CPU (Marvell PJ4Bv7 Processor rev 1 (v7l)) with 512MB RAM.

This device uses 32-bit binaries with 64K page size. WD releases a cross-compilation environment as part of its "WD My Cloud EX2 GPL Source Code". Download it from WD support page (making sure it matches your firmware version) and follow the instructions in My_Cloud_EX2_Release_Notes_GPL_*.txt to setup the environment. I recommend using a Debian OS.

The following packages are required to use the cross-compilation environment: build-essential automake lib32z1

Building dependencies


(not always bizarre, sometimes just backfiring daily design)


juniorz /
Last active Oct 16, 2020
Reflections on the product space and the solution space for web-scale distributed containerized cloud systems

"Those that know, do. Those that understand, teach."

Aristoteles (supposedly)

Learning goals

  • Establish a taxonomy for this segment of software development industry (the domain).
  • Define evaluation criteria for products in the solution space.
  • Assess the landscape of the solution space and how they fit the market.
  • Better understand the problem space.