Blog
-
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.
-
How to Identify AI-Generated Text (LLM)
After using Artificial Intelligence (LLM) for a while, you begin to notice patterns. These are some I’ve identified. Comma before double quotes ,” For some reason LLM are not so good dealing with comma and quote, so whenever I see a sentence that has ,” it’s a clear signal that it was AI generated. Example:…
-
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…
-
How to use trash (MacOS) command in Linux (Ubuntu)
I learned that macOS has a useful command called trash to move files to the trash instead of deleting them permanently like rm. On Linux (Ubuntu), there’s no native command for that, but you can use the trash-cli tool. Now, just create an alias to emulate the same command: π€ Clarification on the use of…
-
Zoom can not start screen share in Ubuntu (Wayland)
After trying to share my screen in Zoom on Ubuntu I got the following error: After a little bit of search, I found out that it was because I was using Wayland (which is used by default) and that Zoom has resolved this issue in client version 5.11.1. To my surprise, the version available in…
-
MailPoet (WordPress Plugin) is not working on Firefox
When I opened MailPoet in the WordPress Dashboard using Firefox, nothing was showing, and the solution was so unexpected I had to share it.
-
How to remove all files in a directory except specific subfolders in Bash
Today I Learned how to delete all contents of a folder except specific subfolders using Bash.
-
Installing Fabric (open-source AI framework) on Ubuntu Linux
Struggling with writing AI prompts and managing their input? Discover Fabric, an open-source framework that simplifies the process with pre-configured prompts and seamless command chaining, making your AI interactions more efficient and effective.
-
Installing Local WP in Ubuntu: unmet dependencies libaio1 libncurses5
How the fix the unmet dependencies error.
-
How to run examples from “Prompt Engineering for Generative AI” book on Ubuntu 24.04
Step-by-step guide of what I did to run the “Prompt Engineering for Generative AI” book code examples on Ubuntu 24.04.
-
Run python3 as python in Ubuntu 24.04
In Ubuntu 24.04, the python command is not available by default, as the system uses python3 for Python 3.x versions. Package: python-is-python3 The easiest way to fix this is to install the package python-is-python3. Alias You can also add the following line at the end of your ~/.bashrc file: Save the file, and apply the…