What's up? May 2023
Yet another blogging gap...
So in March I was laid off from work.
I was lucky enough to be connected to an opportunity with the University of Washington.
I've been busy with that onboarding and now getting my bearings in the position.
3D priting continues. That'll be a separate update, but it's going great.
Also expect posts about my new keyboard and macropad I am setting up.
Anyways, I had an idea. apt-regret
— a script that checks the apt log for the last installed package and pulls up the command to remove it. You know for when you tried something out and it doesn't work as promised.
#!/bin/bash
# Check the log file /var/log/apt/history.log
# Grep for all the "install" entries
# Tail for the last entry
# Awk for the last word on that line
last_installed=$(less /var/log/apt/history.log | grep 'install' | tail -n 1 | awk '{print $NF}')
echo Last installed package was:
echo - $last_installed
sudo apt-get remove --purge $last_installed
sudo apt autoremove --purge