Jochen Lillich

@geewiz.dev

I'm a greybeard geek and IT operations black belt. #DevOps and #SRE trainer/mentor. German living in #Ireland. Likes #Linux, #Ruby and #MechanicalKeyboards. He/him.

The command list bash/zsh gives you with `history` is numbered. You can repeat a specific command with `!<number>`. A bit convoluted. What I do more often is repeat the previous command with `!!`. For example, when I forgot to use `sudo`, I simply go `sudo !!`.

You might be familiar with the Linux shell aliases that you can use to run complicated commands by typing a more convenient one. But did you think of using aliases to automatically fix typos? For example, why not save yourself from going "Gerp" by defining `alias gerp=grep`?

To insert the argument of the previous Linux shell command, press Esc, followed by a period. There's also a useful shell variable: `mkdir my_new_directory ; cd $_`

Did you know that the #Ruby on #Rails console has a sandbox mode that will revert (almost) all accidental alterations on exit? It's a great way to access your production application with peace of mind. `rails console --sandbox`

Linux shell tip: Make a quick backup copy `cp originalfile{,.bak}` This command copies `originalfile` to `originalfile.bak` using brace expansion for the name suffixes "" (nothing) and ".bak".

Southern Europe and Northern Africa are on fire, more than 10000 people so far in Europe have died because of the heat. And that's just the beginning. These people as well as their fossil fuel buddies should be tried for what they're doing.

John Gibbons 🇵🇸 🇺🇦 🇪🇺@thinkorswim.bsky.social · 2w ago

Astonishing attack on civil society and environmental justice by a government lacking either vision or basic competence. www.thejournal.ie/jack-chamber...

"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian Kernighan

Git tip: Create a `.gitmessage` template file and set it with `git config commit.template ~/.gitmessage`. Consistent commit messages improve team communication and project history. #Git

Homelab tip: Set up Prometheus with node_exporter on all machines. Monitor CPU, memory, disk, and network. Grafana dashboards make trends visible.

Git tip: Use `git commit --fixup <hash>` for small fixes, then `git rebase -i --autosquash` to automatically organize them. Keeps commit history clean during development. #Git