Changing macOS modifier keys… VMs edition

If you’re anything like me and spend a lot of time tinkering with apps and your home lab, you’re probably switching constantly between macOS, Linux, and Windows (and others!). And when macOS is your main system but you also run several virtual machines, keyboard shortcuts and modifier keys can quickly become a source of friction. Specially regarding modifier keys (most OSes use Control the same way macOS usses Command. Fortunately, you can modify that for macOS and keep our VMs behave with the shortcuts you’re used to —-without interfering, using Karabiner Elements… and a trick.

Continue reading

How to: repair a broken Ext4 Superblock in Debian

So one day you’re halfway through your morning coffee, and someone has already left you a message:

ext4-fs error: unable to read superblock

The system won’t boot. Files are completely inaccessible. There’s no obvious way to move forward. Looks like you’ve got a full-blown mess on your hands, and you’ve got no clue where it even started.

Alright, first things first—breathe. This can be fixed. Grab that coffee — and let’s clean up this mess fast!

Continue reading

Deploying a LAMP practice stack… on the cloud (Part I)

Imagine this scenario: you need to practice old-school PHP + MySQL and you have to setup a practice environment.

The first choice is almost obvious (and normally mentioned everywhere), that is installing a local LAMP/MAMP/WAMPP instance so you can have a local Apache server with PHP and MySQL.

But what if you don’t want (or can’t) install that? Well, another obvious option is to use any of the thousands hostings that for a fee, will provide you a working environment, with everything ready to use to host your “apps”.

But what if you want more control? Well, you could use Docker on your own machine and have everything accesible. But, again, another constraint: what if you need to access from anywhere and you don’t want to expose your home or work environment to the Internet…? And what if you don’t want Docker to be in background consuming your resources…?

Continue reading