Author:
erics , September 13th, 2023
Add inbound rule(s) for a security group ID:
shell > aws ec2 authorize - security - group - ingress -- group - id sg - NNNNNNNN -- protocol tcp -- port 80 -- cidr '0.0.0.0/0'
## Delete inbound rule(s) for a security group ID
shell > aws ec2 revoke - security - group - ingress -- group - id sg - NNNNNNNN -- protocol tcp -- port 80 -- cidr '0.0.0.0/0'
## List security groups by security group ID
shell > aws ec2 describe - security - groups -- output json | jq - r '.SecurityGroups[]|.GroupId+" "+.GroupName'
## List inbound rules for a specific security group ID
shell > aws ec2 describe - security - groups -- group - ids sg - NNNNNNNN -- output json | jq - r '.SecurityGroups[].IpPermissions[]|. as $parent|(.IpRanges[].CidrIp+" "+($parent.ToPort|tostring))'
Thanks to: https://www.bluematador.com/learn/aws-cli-cheatsheet
Categories: How-To's , Technology Tags: Add , AWS , aws cli , cli , Delete , Group , howto , Remove , security , Security Group , tips
| No comments
Author:
erics , April 17th, 2017
If you are missing either your “Dashboard > Updates” menu choice, or the “Add New” button or menu choice in the Plugins section, do this to correct it: Edit the wp-config.php file, and change two lines to be false instead of true: For example, here are the two lines fixed:
define ( 'DISALLOW_FILE_EDIT' , false ) ;
define ( 'DISALLOW_FILE_MODS' , false ) ;
Categories: How-To's , Technology Tags: Add , Add New , Button , Disable , DISALLOW , DISALLOW_FILE_EDIT , DISALLOW_FILE_MODS , false , howto , Missing , tips , update , WordPress
| No comments
Author:
erics , January 1st, 2015
awk ‘{sum+=$1}END{print sum}’ inputFile
Categories: How-To's , Technology Tags: Add , AWK , bash , Command line , howto , Math , Shell , Sum , tips
| No comments
Author:
erics , July 11th, 2013
select theField from theTable order by theField+0; ~OR~ select theField from theTable order by CAST(theField AS UNSIGNED);
Categories: How-To's , Technology Tags: 0 , Add , Cast , howto , Number , sort , String , text() , tips , Zero
| No comments
Author:
erics , October 3rd, 2012
var sum = 0 ;
// loop through each field
jQuery ( ".sum" ) . each ( function ( ) {
//add only if the value is number
if ( ! isNaN ( this . value ) && this . value . length != 0 ) {
sum += parseFloat ( this . value ) ;
}
} ) ;
//.toFixed() rounds the sum to 2 decimal places
jQuery ( "#sum" ) . html ( sum . toFixed ( 2 ) ) ;
Categories: How-To's , Technology Tags: Add , form , howto , JQuery , Math , Sum , tips
| No comments