How To Allow AWS IAM Users EBS Snapshot Create And Delete Access

Author: , Posted on Thursday, July 29th, 2021 at 4:41:34pm

SUMMARY: Needed to create an AWS IAM Policy to allow a user access to create and delete EBS snapshots. This script also needed to be able to list volumes:

How To Fix aws Command Error “You must specify a region”

Author: , Posted on Thursday, July 29th, 2021 at 1:55:51pm

I was getting error “You must specify a region” when running any aws CLI command. The fix:

Using the aws command:

which will automatically add the following to the file ~/.aws/config:

You many simply edit the ~/.aws/config file yourself and append the same thing:

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

Author: , Posted on Wednesday, July 28th, 2021 at 12:34:08pm

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

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

SOLUTION:

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