Git - Deleting Merged Branches

I use git for source control when writing these posts. Eventually- my local editor ends up with 50 branches which have already been merged into origin/main, and I end up needing to manually go through and remove the old branches.

This, is a VERY short post, detailing how to create a git alias to automatically prune branches, which have been merged, or deleted on your remote.

If- you don't need steps on how to create the alias, then here is the command:

!git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D

Otherwise, keep reading.

The Hoodcat Chronicles

This- is the tale of hood-cat. The cat who decided to break into my house, assert dominance over my cat, pee on my chair, and make himself at home.

alt text

Learning about how a computer works and about electronics

Want to learn about how a computer works?

Not- at a high level....

But, at a very, very low level, where you literally build a functional computer from transistors.

If so- this is a list of resources which I have found extremely handy for myself.

Also, because ADHD.... there is also a list of automation centric games, channels involving lasers, plasma, etc.

Mikrotik - Route specific websites or hosts through VPN.

This post outlines how to accomplish the following activities:

  1. Creating an interface for a remote wireguard VPN connection to an upstream VPN provider.
  2. Forcing specific websites over VPN via Destination IP or DNS.
  3. Forcing specific hosts over VPN via Source IP.
  4. Route ALL traffic over VPN.
  5. Blocking traffic if VPN is down.

Will changing the link speed of your current NIC, affect Power Consumption?

For me- I have 100G NICs in my SFFs. I don't need the full throughput.

So- will reducing the link speed, impact power consumption?

For this post- I will benchmark and determine the impact.

DIN Mount Network Closet - Part 1 - Building the frame

So... Near the end of 2024, I ended up cleaning up my rack, and making everything nice and tidy.

If- you missed that, have a look at the 2024 Homelab Summary

For the next problem- my networking closet is an absolute disaster.

There are wires hanging everywhere... There are switches, and cables everywhere... its a mess.

Picture of cables hanging everywhere before

I plan on building a frame, with DIN rails for mounting all of this hardware.

I see tons of racks. I see tons of mini racks. I rarely see DIN-mounted networking.

Part 1, is building the frame which will hold all of the components.

This is all wood and construction. Nothing technical.

Guide: Proxmox - Delete "data" thinpool and extend root partition

Have... a full root partition on proxmox?

root@kube02:~# df -h
Filesystem                            Size  Used Avail Use% Mounted on
udev                                  126G     0  126G   0% /dev
tmpfs                                  26G   21M   26G   1% /run
/dev/mapper/pve-root                   94G   94G     0 100% /

Confused because your boot disk is much larger in size?

alt text

Well, its because Proxmox by default, partitions the root disk with LVM, Regardless if you are using it to store data.

alt text

This post detail completely removing the data partition and extending the root partition

Gitea - Slow Dashboard

For a few weeks now, I have noticed my Gitea instance takes nearly two minutes to load.

Turns out, when you use gitea for archiving lots of public repos, this will build up many entries in the actions table, which can drastically increase the loading time needed.

To fix this, I made a query & cron job, which removes actions for my "Archive" organization.

This- fixes the issue.

IF, you aren't archiving/mirroring a lot of repositories, this post will not help you.

Edgemax - Auto sync configuration to git

Many years ago, I had setup a system which would automatically sync my Edgemax's configuration to a local git repo.

It worked so good, I had completely forgotten about it. During a firmware update last year, it had stopped working.

So- I went through, fixed and updated the scripts- and I am now sharing them with you.

My history with Unraid & TrueNAS

I have swapped between Unraid, and TrueNAS a few times over the years.

Often, I stumble upon threads asking... Should I use Unraid? SHould I use TrueNAS?? Which one?!?

Well- I'm not going to tell you which one to use. Rather- I will give you the reason I personally use Unraid.

2024 Network Revamp

This month's goal, is to update the network to provide isolation, and separation between LAN subnets, and my server subnets.

Aka, if I go unplug my rack of servers- The internet should remain unaffected for members in my household.