tmux: reload bash config across all panes and sessions

Yesterday I got myself into tmux and I love it!

tmux is a terminal multiplexer. It lets you switch easily between several programs in one terminal, detach them (they keep running in the background) and reattach them to a different terminal.

I’ve been using Zellij for several months prior to this. Which I must thank for getting me introduced to the world of terminal multiplexers. However I’ve been running into several issues with it, that got me looking for an alternative:

Read more →

Enabling initramfs on AWS EC2

Modern EC2 instances on AWS boot without invoking initramfs by default. So if you want to do things like repartition your disk, where the root partition is, you’ll be scratching your head why your initramfs hooks aren’t loading.

Read more →

tinyups3 – streaming S3 uploader

Working with the official AWS S3 CLI, as well as tools like s5cmd I quickly realized they aren’t optimized for resource constrained systems, rather more towards uploading as fast as possible and in parallel. This is great for most use cases, but not when you want to minimize the impact on the system, like during frequent backup operations and on a system with half a gig of memory for example.

Read more →

curl request and return headers only

The UNIX command line tools is something that just keeps giving. Within web development I often find myself wanting to quickly debug a URL, see whether it’s alive or what the response is. Often I do not want to download the whole content (a large file for example). Before I learned the following, I would use Chromes Developer Tools. That is until I learned how to do it more efficiently and quicker with good old curl:

Read more →

Speeding up bundle install with in-memory file system

On some of the servers I work with, due to cheap hard drives in software RAID configuration, I’ve found that bundle install can be extremely slow (take half an hour to complete). This obviously became unacceptable during deploys.

Read more →

Git Tip: Fast commit alias

Often the changes I do to my working copy are small and I don’t want to waste time with explaining what it is. So I’ve created a bash alias to do a commit with a generic message for me:

Read more →

Some useful command line tools

It’s about time I got myself familiar with some of the core UNIX command line tools. No matter how good the GUI applications look like and work, when using command line alternatives the stuff gets done faster and it’s less prone to error.

Read more →