21zoo Labs - Assorted Stuff
Recent posts
Nov 2024
Check from the shell if Github is up and accessible
-
Nov 2024
Limit Log Disk Space Used by Journald on Linux
Sep 2024
How to exclude metrics from ingestion into your Prometheus server
Jan 2024
How to delete a timeseries / metrics from Prometheus
Sep 2023
Use drone.io to publish a Docker image to ECR and copy files to S3
Aug 2023
Migrate AWS Lambda Golang Functions to the "al2.provided" Runtime
Jul 2022
Run CloudSQL proxy with docker-compose
Feb 2020
Use Gitea as a Auth Provider for oauth2_proxy
Oct 2019
Make "go get" use ssh instead of https
- Useful e.g. when using private repos
Sep 2019
Go Modules - How to Update All Dependencies
- just use "go get -u -m"
Sep 2019
How to Make a DNS Lookup in Golang
- code snippet
Aug 2019
Prometheus & Kubernetes - Configure to Scrape Pods
- How to scrape pods, not services
Aug 2019
Prometheus Mongodb Exporter - Correct DB User Permissions
- How to configure the DB user
Jul 2019
Postgres - Get the Current Number of Open Connections
- metrics
Jul 2019
Using AppEngine go112 with CloudSQL Postgres - How to set the DB URI?
-
Jun 2019
How to Calculate the Distance Between Two Lat,Long Points in Golang
- code snippet
Jun 2019
How to Run the Google Firestore Emulator
- Useful for local development
May 2019
How to prevent Nginx from Caching DNS for Proxy Upstreams
- when your upstreams change often
May 2019
Reload Nginx config inside a Docker container
- A useful way to avoid downtime
May 2019
Golang Sub Tests
- t.Run() is a great way to improve table-driven tests
May 2019
git push --force-with-lease
- really, use `git push --force-with-lease`
Apr 2019
Interactive Bash Shell in Kubernetes
- When you need a quick shell in your Kubernetes cluster
Apr 2019
How to Forward a Port to Different IP using "nc"
- a useful unix networking tool
Mar 2019
Delete a Tag from Docker Hub
- docker maintenance
Feb 2019
drone-gcf - a Google Cloud Function plugin for drone.io
- automation
Nov 2018
How to query Prometheus from Python
- code snippet
Oct 2018
Docker - Clean Up Unused Volumes
- docker maintenance
Oct 2018
Golang HTTP Client - How to not follow redirects
- code snippet
Sep 2018
Golang - Parallelize Tests
- You can run Golang tests in parallel by using `t.Parallel()`
Sep 2018
Crontab - run a command every 5 minutes
- a quick explainer
Aug 2018
Install Deluge Torrent Client on Ubuntu
Apr 2018
How to set a default namespace for "kubectl"
- Use context to set a default namespace
Apr 2018
Golang Cross Compile for Linux Macos and Windows
Apr 2018
How to get the SSL cert expiration date from PEM file
Mar 2018
Prometheus Instrumentation & Metrics Best Practices
- Good read from the official docs
Mar 2018
Notes on Programming in C
Feb 2018
What was the best CS paper you read in 2017?
Jan 2018
How to Design a Scalable Rate Limiting Algorithm
Dec 2017
Django SMTP Settings for Gmail
Dec 2017
Remove or Clear Last Login Information on Linux
Dec 2017
Enable Swap on Ubuntu
Dec 2017
Install Docker and Docker Compose on Ubuntu
Nov 2017
Configure SSH to use a Jump Host
Nov 2017
How to define multi-line strings in yaml/yml
Nov 2017
Bash Shell - Append Date to Filename
Nov 2017
Automatically Delete Docker Container After Running
Nov 2017
Disable password access in sshd
Nov 2017
How to create custom Nginx error pages for 404s
- How to create custom Nginx error pages for 404s
Nov 2017
Update Nginx to latest version on Ubuntu
All articles →
All tags →