2021-02-26

Windows cleanup

win+r disk cleanup

win+r %temp%

Select the Start button, then select Settings > Apps > Startup.

 

Ubuntu autorun

alt+F2 gnome-session-properties

 gnome-startup-applications

2021-02-24

AWS

SIMPLE MONTHLY CALCULATOR
https://calculator.s3.amazonaws.com/index.html
   

AWS Free Tier
https://aws.amazon.com/free/?nc2=smc&all-free-tier.sort-by=item.additionalFields.SortRank&all-free-tier.sort-order=asc&awsf.Free%20Tier%20Categories=categories%23databases

aws configure

aws dynamodb describe-table --table-name BaseballStats

 aws dynamodb batch-write-item --request-items file://./teams.json

aws dynamodb scan --return-consumed-capacity "TOTAL" --table-name BaseballStats

 aws ec2 describe-instances --profile prod-user


AWS credentials provider chain that looks for credentials in this order:

  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY (RECOMMENDED since they are recognized by all the AWS SDKs and CLI except for .NET), or AWS_ACCESS_KEY and AWS_SECRET_KEY (only recognized by Java SDK)
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Web Identity Token credentials from the environment or container
  • Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
  • Credentials delivered through the Amazon EC2 container service if AWS_CONTAINER_CREDENTIALS_RELATIVE_URI" environment variable is set and security manager has permission to access the variable,
  • Instance profile credentials delivered through the Amazon EC2 metadata service

Credential retrieval order

sudo yum remove java-1.6.

sudo yum install java-1.8.0-openjdk-devel

sudo alternatives --config java

sudo yum install apache-maven

mvn -v

export JAVA_HOME=

mvn -v


aws sr mb s3://asdf.com

aws s3 ls s3://asdf.com


./mvnw clean install

maven reload all projects

./mvnw clean verify