Imac 2019

International Miniature Aerobatic Club

Known Basic 2019

No. Symbol Description
1 2.4.1.1 360 degree turn
2 8.4.1.1; 9.1.5.2 Humpty bump, 1/2 roll on vertical down line
3 8.5.2.1; 9.1.2.2 Reverse half Cuban, 1/2 roll on 45 degree upline (I think this is downline)
4 7.4.1.1 Loop
5 1.2.7.1; 9.1.4.2 Sharks Tooth, 1/2 roll on 45 degree downline
6 5.2.1.1 Hammerhead / Stall turn
7 1.1.1.1; 9.1.3.4 Aileron roll
8 8.5.6.1; 9.1.4.2 Half Cuban, 1/2 roll on 45 degree downline
9 7.2.2.1; 9.1.3.2 Half inside loop, 1/2 roll on top
10 1.1.6.3; 9.11.1.6 1 1/2 Turn positive spin

Learning Aresti

References

SSH - Secure shell to instance

  1. Create key pair in AWS Console and download it
  2. Import AWS key, using Putty gen key
  3. Enable inbound traffic in security group
1
SSH   TCP   22   0.0.0.0/0
  1. Connect
1
2
ec2-user@ec2-xx-xxx-xxx-xxx.ap-southeast-2.compute.amazonaws.com
root@ec2-xx-xxx-xxx-xxx.ap-southeast-2.compute.amazonaws.com
  1. Running commands on the instance
1
2
3
4
5
sudo yum install -y ecs-init
sudo service docker start
sudo start ecs

tail -f /var/log/esc/esc-agentlog.YYYY-MM-DD

References

Beer Brewing

Temperatures

  • Lagers: 10-14 degrees
    • Pilsner is a type of pale lager.
  • Ales: 18-21 degrees

Hydrometer

Understanding what your fermentation is doing will help ensure a successful brew and encourage improvement in your brewing. A hydrometer to measure the gravity before, during and after fermentation is part of that process. If nothing else, it will help you work out the amount of alcohol in the beer and you’ll know when the fermentation has finished.

They measure: specific gravity, potential alcohol and approximate sugar per liter.

At its most basic scientific purpose, a hydrometer is an instrument that measures the specific gravity of liquids, that is to say, it measures the ratio of the density of the liquid to the density of water.

Timeline

  • Clean your drum with a sterilizing agent
  • Brewing, 2 hours
    • Dissolve your brew in 2-4 liters of very hot water
    • Add 1kg of sugar or dextrose
    • Put about 10 liters of cold water in your fermenter
    • Add the hot mixture, and mix well.
    • Top it up to 23 liters and sprinkle with brewers’ yeast when the temperature is below 30°.
  • Fermenting about a week
    • Seal the fermenter and partly fill the airlock with boiled, cooled water.
    • Once the airlock stops bubbling and the brew clears, leave it for another 48 hours
    • If the hydrometer reading is close to the expected reading and static for more than 24 hours then it’s ready for bottling.
  • Sterilize your bottles and caps with a sterilizing agent
  • Add a teaspoon of sugar or dextrose to each bottle
  • Fill each bottle to 40mm below the top
  • Cap the bottles, tilt them a few times to help dissolve the sugar
  • Store them in a warm place for five days
  • Move them somewhere a bit cooler for another five days
  • Give them another week, and try your beer

Sample at three weeks, three months, and six months if you don’t get rat-assed with your mates and smash them all.

References

Command Line Interface Overview

Firstly install and configure both the AWSCLI and ECSCLI.

For the examples below ecs is the [options] argument after the aws command. It instructs aws to run the command for Elastic Container Services. Any commands that point to a .json configuration file are available on github.

Detailed help for both EC2 (Elastic Compute Cloud) and ECS (Elastic Container Service) can be found at the links below:

You can dump the result if any command to a text file which is useful with the describe commands. Single > will overwrite the file and >> will append. Example:

1
2
C:\> aws ecr list-images --repository-name lexicon-webmvc > output.txt
C:\> aws ecr list-images --repository-name lexicon-webmvc >> output.txt

ECR - Elastic Container Registry

1
aws ecr list-images --repository-name lexicon-webmvc

Task Definitions

Example task definition ARN : arn:aws:ecs:ap-southeast-2:000000000000:task-definition/lexicon-task-definition:3

1
2
3
aws ecs list-task-definitions --region ap-southeast-2 --status INACTIVE

aws ecs describe-task-definition --task-definition TASK-NAME

You CANNOT DELETE task definitions they have to be only deregistered if you no longer want them.

1
aws ecs deregister-task-definition --task-definition TASK-NAME

Register new from local .json file. If you use an existing name it will create a new revision of the task definition. The name is defined in the .json in the family parameter.

1
aws ecs register-task-definition --cli-input-json file://lexicon-task-definition.json --region ap-southeast-2

VPC - Virtual Private Cloud

1
2
3
aws ec2 describe-vpcs

aws ec2 create-vpc --cidr-block 10.0.0.0/16

The above will create your VPC along with a Route Table, DHCP options set, Network ACLs and Security Groups

EC2 Instance

EC2 (Amazon Elastic Compute Cloud) is the virtual machine running in the cloud, this is a Linux variant running the Amazon Linux AMI 2.0.20190913 x86_64 ECS HVM - where AMI stands for Amazon Machine Images

Terminated instances remain visible after termination (for approximately one hour).

1
2
3
4
5
6
7
8
~ Descibes the virtual machine instance
aws ec2 describe-instances > output.txt

~ Describes an attribute, example `kernel` which would be `KernelId` in the response
aws ec2 describe-instance-attribute --instance-id i-00000000000000000 --attribute kernel --region ap-southeast-2

~ Kill it with fire
aws ec2 terminate-instances --instance-ids i-00000000000000000

To create a launch template

1
2
3
4
5
6
7
8
~ display existing launch templates
aws ec2 describe-launch-templates

~ create new
aws ec2 create-launch-template --launch-template-name TemplateForWebServer --launch-template-data file://create-launch-template.json

~ delete
aws ec2 delete-launch-template --launch-template-id lt-0bcc8aca918ba6ae8

To run instances

1
aws ec2 run-instances --launch-template LaunchTemplateId=lt-0daef39547692deac

Security Groups

This is used to open up ports, example allowing you to connect to SQL from SQL Server Management Studio on port 1433. The example below opens port 80.

1
2
3
aws ec2 describe-security-groups --filters Name=vpc-id,Values=VPC_ID --region ap-southeast-2

aws ec2 authorize-security-group-ingress --group-id SECURIYY_GROUP_ID --protocol tcp --port 80 --cidr 0.0.0.0/0 --region ap-southeast-2

Subnets

1
2
3
4
5
aws ec2 create-subnet --generate-cli-skeleton

aws ec2 create-subnet --vpc-id vpc-VPC_ID --cidr-block 10.0.1.0/24

aws ec2 create-subnet --cli-input-json file://create-subnet-1.json

Clusters

Example cluster ARN: arn:aws:ecs:ap-southeast-2:000000000000:cluster/lexicon-cluster

1
2
3
4
5
6
7
aws ecs list-clusters

aws ecs delete-cluster --cluster CLUSTER_ID

aws ecs describe-clusters --clusters CLUSTER_ID

aws ecs create-cluster --cluster-name lexicon-cluster --tags key=Description,value=lexicon

Service

Start from task definition and keep it running.

1
2
3
4
5
6
aws ecs list-services --cluster lexicon-cluster
aws ecs delete-service --service lexicon-service --cluster lexicon-cluster

~ servicediscovery
aws servicediscovery list-services --filters lexicon
aws servicediscovery delete-service --id srv-cftwloewpccqww3k

Tasks

1
aws ecs run-task --task-definition lexicon-task-definition:6 --cluster lexicon-cluster

Tags

Assign metadata to AWS resources, this is a array of key|value so you can allocate infrastructure resources.

1
aws ecs list-tags-for-resource --resource-arn

Elastic Container Registry

Amazon Elastic Container Registry (ECR) is a fully-managed Docker container registry that makes it easy for developers to store, manage, and deploy Docker container images.

Registry

Create ECR Repository from the AWS Console, example: lexicon-webmvc

1
2
000000000000.dkr.ecr.ap-southeast-2.amazonaws.com/lexicon-webmvc
This is the same as a docker hub image: microsoft/mssql-server-linux:2017-CU13

Push image from Local

Use the CLI to generate your login command

1
2
3
4
5
6
7
aws ecr get-login --no-include-email --region ap-southeast-2

docker login -u AWS -p [MASSIVE ENCRIPTED BLOB] https://000000000000.dkr.ecr.ap-southeast-2.amazonaws.com

docker tag docker-compose-lexicon_lexicon-webmvc 000000000000.dkr.ecr.ap-southeast-2.amazonaws.com/lexicon-webmvc

docker push 000000000000.dkr.ecr.ap-southeast-2.amazonaws.com/lexicon-webmvc

Now the image will be available at the ECR.

References