-
Bad Hack: Restart Linux Server when memory is low 😬
A hack on a Raspberry Pi server uses a script to monitor and restart the server if memory is too low. Checking swap and physical memory, it reboots if levels drop below specific thresholds. Scheduled to run every five minutes, the script logs instances when it prevents system freezes by rebooting.
-
How to Use Backticks for Inline Code in Google Docs with a Chrome Extension
Revolutionize Your Google Docs Experience with Backtick: Seamless Markdown Formatting for Inline Code Blocks
-
Fixing a broken ATOM Feed
The article explains how to convert an outdated ATOM feed to a JSON feed using a PHP proxy script. It details the process of fetching, caching, and transforming the XML data into a JSON format that can be used for more modern feed readers. The provided code snippets illustrate the conversion steps from ATOM to…
-
iOS Reminders to Habitica To Do’s via IFTTT
Learn how to sync iOS Reminders with Habitica’s To Do’s using IFTTT. Utilize Habitica’s API to create tasks and authenticate requests with special headers and a JSON body payload. IFTTT will send the data to Habitica, allowing you to earn XP as you complete tasks.
-
Quick Tip: Get Size of Revisions in WordPress
Monitoring and managing data bloat in a WordPress site can be crucial. The introduction of the block editor has led to a surge in post revisions, which can clog up the database. Conducting a revision data audit using SQL queries can reveal the extent of unnecessary data accumulation, highlighting the importance of setting limits to…
-
Quick Tip: Script Debugging in WordPress
When debugging core WordPress scripts, dealing with cached copies like in `script-loader.php` can be tricky. You can apply a unique `ver` argument to core scripts on each refresh using a filter. This ensures you get the most recent version from page and browser cache. Remember to enable `SCRIPT_DEBUG` when debugging core scripts.