Ctrl+P in Docker container

I strive to be efficient on the command line, and some of my favourite keyboard shortcuts in Bash are the ones that allows me to navigate and execute previous commands easily. Some of which are back and forward through the command history with Ctrl+P and Ctrl+N combined with Ctrl+J for executing the command. The problem This is all well and good until you jump in to a Docker container and suddenly Ctrl+P isn’t working as expected anymore. ...

July 21, 2024 · 2 min · David Isaksson

Back up your Bitwarden vault in a future-proof and secure way

Introduction Your Bitwarden vault contains (hopefully) all of your passwords and other sensitive data, so it would be good to have a backup of it in case something goes wrong. ...

November 19, 2023 · 6 min · David Isaksson

Backup files quick with Bash's brace expansion

Alright, here’s a quick trick that I use at least a few times a week. Problem Let’s say we have a file that we want to make a copy of for whatever reason. In this example we’re creating a backup of the SSH server config before modifying it: $ cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak This is fine and dandy, but a bit verbose… We’re writing the same string two times and to be frank, it’s not fun. ...

April 8, 2023 · 1 min · David Isaksson