jroddev

jroddev

jroddev
Multiple Git accounts with different SSH keys

Quick Tricks

Multiple Git accounts with different SSH keys

It's quite simple to setup multiple Git (in this case GitHub) accounts on the same machine, each using different SSH keys. The scenario that I use this for is to have both a personal account and a work account. Host github-personal HostName github.com IdentityFile ~/.ssh/personal_github_

By jroddev 04 Mar 2021
K8s Grafana Doesn't Persist Data

Kubernetes

K8s Grafana Doesn't Persist Data

I recently setup monitoring on my home MicroK8s cluster (Prometheus, Grafana, InfluxDB) and found out the hard way that by default the Grafana deployment does not have any kind of Persistence (emptyDir volume). If the pod gets restarted all of your custom settings, sources, dashboards, etc will be erased. In

By jroddev 28 Feb 2021
K8 Host Storage Backups with Rsync and CronJob

Kubernetes

K8 Host Storage Backups with Rsync and CronJob

I host a single node Kubernetes cluster (MicroK8s) at home running various applications. I use simple hostpath volumes for storage and need a way to create backups of this data. The solution I chose is to combine K8 CronJobs with Rsync. The basic steps are: * Create a backups namespace * Create

By jroddev 16 Feb 2021
Application Data Sync with WebDAV

Quick Tricks

Application Data Sync with WebDAV

Use WebDAV in your application to sync files (sqlite in my case) between devices. Storage backed by NextCloud, AWS S3, Google Drive, Dropbox and more

By jroddev 16 Feb 2021
SSH Port Forwarding for local development

Linux

SSH Port Forwarding for local development

Motivation We have an application with a single frontend and a micro service backend. When we were smaller it was feasible to run everything on our laptops while developing locally. Those days ended. However we were able to make a relatively small change to the local setup to allow developers

By jroddev 02 Feb 2021
Override DNS with /etc/hosts

Linux

Override DNS with /etc/hosts

Tell your computer which IP address to use for a hostname with the /etc/hosts. Handy for development and other scenarios.

By jroddev 27 Jan 2021
Vim Tricks: sudo write current file

Quick Tricks

Vim Tricks: sudo write current file

Execute sudo write from within vim

By jroddev 25 Jan 2021
See all
jroddev
Powered by Ghost