How To Allow IAM Users AWS CDN Read/Write Access For W3 Total Cache

Author: , July 28th, 2021

SUMMARY: Needed to create an AWS IAM Policy to allow a user access to two buckets and their associated CDN’s in WordPress W3 Total Cache

How To Disable VIM Mouse Automatic Visual Mode

Author: , July 27th, 2021

Current Session:

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

How To Count Lines In A String Variable Using Perl

Author: , July 20th, 2021

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

Author: , July 16th, 2021

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 […]

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

Author: , July 14th, 2021

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: , July 8th, 2021

ERROR: Briefly Unavailable for Scheduled Maintenance. Check Back in a Minute CAUSE: WordPress did not complete an action SOLUTION: Either – 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: , June 17th, 2021

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: , June 16th, 2021

Should result in 3

How To Convert from AWS Instance Family t2 to t3 with Enhanced Networking on Amazon Linux 1

Author: , June 10th, 2021

I wanted to change instance type from t2 to t3, but got an error when i went to start the instance:

I found this AWS docs page: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking-ena.html Below are the steps I need to follow on AWS Linux 1. Summary Steps Pre-flight tests on t2 modinfo ena -> see “ERROR: modinfo: could not […]

How To Undo A Conflicting Merge in GIT

Author: , June 8th, 2021

shell> git merge branch-with-messy-changes

shell> git status

IMPORTANT NOTE: Previous versions of git used different commands for this operation: Latest version: git merge –abort Older than version 1.7.4: git reset –merge Older than version 1.6.2: git reset –hard