How To Prevent Spotlight From Indexing External Drives on MacOS

Author: , Posted on Friday, February 26th, 2021 at 11:46:15am

On MacOSX 10.10.5 Yosemite, I was having trouble with Spotlight preventing the clean eject of an attached hard drive.

Using the fuser command allowed me to see that it what the Spotlight-specific mds process preventing the eject.

At first, I tried to disable the indexing via the mdutil command, but that just gave me an error:

I ended up having to force eject the drive:

The actual solution was so very simple, just create an empty file at the root of each external drive you with to prevent being indexed:

How To Create WordPress Category Pages in Genesis Including Title and Content

Author: , Posted on Friday, February 19th, 2021 at 3:18:00pm

Create two template files in the wp-content/themes/{themeName}/ subdirectory:

page_blog.php

page_blog_plus_content.php

How To Expand an NVMe EBS Volumes After a Disk Resize on Amazon Linux 2

Author: , Posted on Friday, February 19th, 2021 at 9:58:50am

Note how the partition at 259:1 is only 20GB, while the entire disk at 259:0 is 40GB. A partition resize is required in this case.

For more information, please visit the AMW Docs: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html

How To Login To A Docker Container Shell

Author: , Posted on Monday, February 15th, 2021 at 11:43:31am

First, get the container ID using docker ps:

Now run docker exec -it {ContainerID} /bin/bash:

You can make a simple shell script to ease typing a bit:

How To Escape Single and Double Quotes in Perl

Author: , Posted on Thursday, February 11th, 2021 at 8:36:14am

## to add a single backslash in front of whatever char was matched


## to double whatever char was matched


## to convert ‘ to ‘\” for shell execution

How To Renew A Single Domain With certbot

Author: , Posted on Monday, February 8th, 2021 at 12:36:33pm

Test Renewal of a Single Domain

Execute Renewal of a Single Domain

R.I.P. Judith Diane Stone

Author: , Posted on Tuesday, January 5th, 2021 at 10:22:03pm

Judith Diane Stone

Judith Diane Stone

It is with deep and profound sorrow that we announce the sudden and tragic passing of Judith (Resnick) Stone, long time resident of Lynbrook, NY most recently of Monroe, NY, on January 5, 2021.

She is survived by her beloved husband and childhood sweetheart of more than 62 years, Richard, her son Eric and daughter-in-law Naomi, her son Scott and daughter-in-law Deana, her cat DJ and a large circle of extended family and friends. She is remembered by all as always smiling and for her genuine and infectious laugh.

With her husband Richard, they owned and operated Dry Cleaning Plus, a leader in dry cleaning industry consulting and business matchmaking on the East Coast since 1989. She served as a leading industry consultant for more than 20 years and developed a unique assessment tool that determined the value of a dry cleaning business. Judith wrote a number of articles for various industry publications. Prior to that she was co-owner with her husband of Superior Valet Dry Cleaners of Lynbrook, NY where she developed a custom delivery service for an elite clientele. She was General Manager for nine years of Island Cleaners in Williston Park, NY. A specialist in wedding gown restoration, she founded a wedding gown rental business, Island Bridal Gown Rentals in Hicksville, NY. Judith was beloved throughout the Dry Cleaning industry all over the country. She also served as President of the Top of the Harbour Co-op board in Oyster Bay, NY and Secretary of the residential board of Windridge III Condominium in Monroe, NY.

Judith worked tirelessly for the good of humankind, always seeing and seeking the best in everyone and everything. In ways large and small, she continually tried to better every situation she encountered with endless goodwill and concern. Judy was a dedicated volunteer to the numerous charities that were dear to her heart.

She was a devoted mother, ever available to listen and genuinely interested in her sons’ well being. These traits carried over into all her personal relationships and friendships, especially with her extended family across the country. She was much loved by all, but most of all by her husband and sons.

She will be dearly missed! A celebration of life will be planned for later in the year.

Cards and stories of remembrance are welcome to be sent to 421 Heritage Lane, Monroe, NY 10950.

If you wish to honor Judith’s memory with an act of charity, we ask that you make a donation to your preferred local food pantry or animal shelter. Plans are underway to create a scholarship for the dry cleaning industry in Judith’s name to ensure her legacy of good works continues.

Judy and Lucy

How To Get the Current Page URL in WordPress

Author: , Posted on Tuesday, January 5th, 2021 at 10:00:06am

https://codex.wordpress.org/Determining_Plugin_and_Content_Directories

How To Pass Named Parameters in Javascript

Author: , Posted on Saturday, December 5th, 2020 at 9:27:54am

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment

How To Fix “IOError: [Errno 10] No child processes” When Running the aws CLI Command from Perl WWW-REST-Apid

Author: , Posted on Thursday, December 3rd, 2020 at 9:44:09am

Problem
While running the aws cli command from a Perl async command inside apid, I go the following error:

Solution
The issue turned out to be a bug in Python2.7, so I upgraded to Python3.4, then uninstalled and re-installed the aws cli software so that it used the proper Python34 version.

Procedure

https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html
https://metacpan.org/pod/distribution/WWW-REST-Apid/bin/apid