• Gathering database performance with WP-CLI

    Discover how we employed WP-CLI to streamline the assessment of database server performance in WordPress, facilitating a more efficient profiling of SQL queries before and after crucial server upgrades.

  • Get First Date of Week in Google Sheets, When the Week of the Year is Related to the Row Number

    Discover how I used ChatGPT to devise a Google Sheets formula that returns the first date of the week based on a row number. This comprehensive guide breaks down each part of the formula, ensuring you can adapt it to your specific needs and track your daily or weekly tasks with ease.

  • Command Timing in ZSH

    Dive into how you can enhance your ZSH experience by adding a snippet that measures the exact time it takes to process a command, right down to the millisecond! This guide provides a detailed walkthrough of the script, allowing you to integrate it with your .zshrc file.

  • Limiting Featured Image Dimensions in WordPress

    Discover how to limit image sizes for featured images based on pixel dimensions using JavaScript in the WordPress block editor. Block large images from being uploaded and display error notifications, preventing publishing until the image size meets the specified criteria. Implement this feature by enqueuing a simple `add_action()` during the `enqueue_block_editor_assets` hook.

  • Half Baked Idea: Limiting WordPress Image Upload Sizes

    Limit image upload size in WordPress media library by using the `wp_handle_upload_prefilter` filter. Implement a custom function to check and restrict the size of uploaded images. Utilize PHP code to set a maximum size limit and display an error message if the file exceeds it. Add this functionality to your WordPress site.

  • Dall-E 2 Outpainting Experiment

    OpenAI introduces Outpainting feature to DALL-E 2, allowing easy image expansion. A quick run-through explores the other side of Bliss with fun experimental results. Download the raw file from DALL-E 2 to further experiment with image manipulation.

  • Stable Diffusion on M1 Macs!

    Learn how to optimize your M1 Mac’s GPU performance by running Stable Diffusion. Find out more about this exciting update in the tech industry.

  • 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