Blog
-
Using MacOS for the first time after 20+ years of Linux
I’ve used Linux as my main Operating System for over 20 years, and just started using macOS for work this year (2025). I’m treating it as a research experiment—to see how another OS works and look for ways to improve my Linux setup (which I already have—like using pbcopy/pbpaste, and recently, the trash command). I’ll…
-
Installing Arize Phoenix with uv in Ubuntu (Linux) or macOS
Here’s how I installed Arize Phoenix, an open-source AI observability and evaluation tool, using the uv package manager: To open it in the future, just run the following commands:
-
WP-CLI: force output to a specific language (locale)
WP-CLI uses the same locale as the WordPress installation, so if you deal with multiple locales, it might be tricky to follow the output. Luckily, the official documentation shows how to set a specific locale. Here’s a quick summary, plus an important caveat I found: 1. Create a file called force-locale.php and set your desired…
-
Automatically log in to WordPress as an admin for local testing
I made a simple plugin with AI’s help that I use locally, so I don’t have to log in as administrator every time I reset a WordPress site to run tests. The initial plugin code had the credentials hard-coded, but before sharing it, I changed it to fetch the first admin user from the database.…
-
How to quickly reset WordPress and still keep themes plus some plugins
I use LocalWP to run WordPress locally, and I made a command to reset a site while keeping the themes and some plugins so I can quickly run various tests. For the script above, I used the steps from my previous guides about removing files (except certain subfolders) and using the trash command. I’ve added…
-
How to discard all changes in a Git repository
Today I Learned you can discard changes in all files in a Git repo with this command: I use this a lot when testing different PRs and need to discard file changes after running the build command for each one. 🤖 Clarification on the use of Artificial Intelligence in this content
-
How to enable Vertical tabs in Firefox
Today I Learned that you can use Vertical tabs in Firefox since version 136. To enable it, go to Menu > Settings > General > Browser Layout > Select: Vertical tabs. In the sidebar, you can click on ‘Customize Sidebar’ for more options. I found the ‘Move Sidebar to the Right’ feature helpful for avoiding…
-
How to get em dash(—) in Ubuntu Linux
Today I Learned that the easiest way to get an em dash (—) is with a Composer Key. To set it up, go to Settings > Keyboard > Special Character Entry > Compose Key, enable it, and pick a key. Be aware that this key will lose its original function. I use Caps Lock, but…
-
How to use an iPad as External Monitor for Ubuntu (Linux)
A few years ago, I saw a post in OMG Ubuntu about how to use an iPad as an external monitor using the RDP protocol, but I wasn’t able to get it to work. Now I tried it again and it finally worked! Here is how I did it. Ubuntu 25.04 (Wayland) Enable extendable virtual…
-
How to safely remove a PDF password on Linux (Ubuntu)
A common answer to remove a PDF password is to run: qpdf –password=supersecret –decrypt input.pdf output.pdf This approach isn’t secure because it stores your password in terminal history (like .bash_history). Here’s how to fix that: In case you don’t have qpdf, just run sudo apt install qpdf.
-
Mapping Logitech Mouse Thumb (Gesture) Button to GNOME Activities Overview in Wayland (Ubuntu)
I’m using a Logitech MX Master 3 and by default, the Mouse Thumb (Gesture) Button triggers the app switcher UI (like Alt+Tab) and I wanted to change it to the Activities Overview (shows all open windows in a zoom out view), that opens when you press Super. To achieve this, we need to install Input…
-
How to remove all files in a directory except specific subfolders in Zsh (Linux or Mac)
I’ve shared how to remove all files in a directory except specific subfolders in Bash, but unfortunately, this command doesn’t work for Zsh. After some tweaking, I was able to reproduce the same behavior, which is to remove everything inside wp-content/plugins/, except folders starting with dk- or exactly named auto-login, and index.php: Dry run Here’s…