Fix permissions 0644 for 'youramazon.pem' are too open

EC2 instances will not accept a .pem key if it is publicly visible.
Since your .pem file is likely sitting on your Desktop or Downloads folder, it has a permission code of 0644.
That is not good enough for your server.

From How to Fix Permission error when ssh into aws ec2 instance

Prevent setState on an unmounted functional component

This may happen if:
1.set state after an async API call
2.set state after an event listener or a setTimeout scope

Get Element's position


The method will return an object containing the (X, Y) coordinate of an element.
The coordinate is relative to the top-left corner of the viewport.
The scrolling is taken into account when computing the (X, Y) position.