R.I.P George

Author: , Posted on Wednesday, July 28th, 2021 at 12:17:27pm

How To Disable VIM Mouse Automatic Visual Mode

Author: , Posted on Tuesday, July 27th, 2021 at 11:46:27am

Current Session:

All Sessions:
Add the following to your ~/.vimrc file:

R.I.P. Jackie Mason

Author: , Posted on Sunday, July 25th, 2021 at 8:22:44am

Famed Borscht Belt comedian Jackie Mason, who rose from a modest childhood on the Lower East Side to become one of the most famous funnymen of all time, has died. He was 93.

How To Match Complex Element IDs In jQuery

Author: , Posted on Thursday, July 22nd, 2021 at 1:36:59pm

PROBLEM: An element ID that looked like this would fail to match:
service = east
node = db1-demo.thedomain.com

SOLUTION: Rig any special characters in the complex hostname (:.[],-@) with a backslash in front of them to ensure proper matching:

How To Count Lines In A String Variable Using Perl

Author: , Posted on Tuesday, July 20th, 2021 at 12:56:33pm

How To Fix Email Service Unavailable Delivery Issues with IPv6 on Amazon Linux

Author: , Posted on Friday, July 16th, 2021 at 2:30:23pm

PROBLEM: Email delivery to Google was failing with a “Service Unavailable” error:

Note that the network address for the destination is shown as IPv6!

That is the root cause of the issue:
1. Sendmail is sending mail from the IPv6 address instead of the IPv4 address
2. Google rejects IPv6 senders without proper reverse DNS lookup or SPF records


Configure sendmail to use the IPv4 address family and pattern:

APPEND TO: sendmail.mc

EXECUTE: /etc/mail/make

EXECUTE: service sendmail restart

How To Preserve Line Breaks When Storing Command Output To A Shell Variable

Author: , Posted on Wednesday, July 14th, 2021 at 3:23:26pm

Solution: “Double Quote” your variables!

See Also: https://stackoverflow.com/questions/22101778/how-to-preserve-line-breaks-when-storing-command-output-to-a-variable

How To Fix Stuck WordPress Maintenance Mode

Author: , Posted on Thursday, July 8th, 2021 at 9:21:10pm

ERROR: Briefly Unavailable for Scheduled Maintenance. Check Back in a Minute
CAUSE: WordPress did not complete an action
– remove ~/wordpress/.maintenance
– edit ~/wordpress/wp-activate.php and set define( 'WP_INSTALLING', false );

How To Change Your GIT Name and Email Address Globally and Per Repository

Author: , Posted on Thursday, June 17th, 2021 at 12:45:23pm

To update your git user name and email address for all repos:

To update your git user name and email address for a specific repo:

How To Count Strings Inside Another In Perl

Author: , Posted on Wednesday, June 16th, 2021 at 12:19:06pm

Should result in 3