1. Launch and connect to EC2 instance running Amazon Linux 2.
2. Promote to root and edit /etc/ssh/sshd_config
## sudo vi /etc/ssh/sshd_config
3. Edit line 17 (usually 17) #PORT 22. You'll need to un-comment the line and change the port to whatever you like.
## PORT 9222
4. Save changes and exit
## :wq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable react-hooks/exhaustive-deps */ | |
import { useEffect, useState } from "react"; | |
import axios, { Method } from "axios"; | |
/** | |
* https://github.com/ali-master/react-typescript-hooks-sample | |
*/ | |
const useFetch = ( | |
url: string, | |
method: Method, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set up basic dev tools | |
sudo apt-get update | |
sudo apt-get install build-essential | |
# Run the base installation | |
curl https://sh.rustup.rs -sSf | sh | |
# Set the path | |
export PATH="$HOME/.cargo/bin:$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### COLORS ##### | |
NO_COLOR="\[\033[0m\]" | |
LIGHT_WHITE="\[\033[1;37m\]" | |
WHITE="\[\033[0;37m\]" | |
GRAY="\[\033[1;30m\]" | |
BLACK="\[\033[0;30m\]" | |
RED="\[\033[0;31m\]" | |
LIGHT_RED="\[\033[1;31m\]" | |
GREEN="\[\033[0;32m\]" |