-
Setup EC2 with Instance Connect
This is a simplified version to setup an EC2 without Putty or SSH on client side (Desktop or Laptop). Login to your AWS account. https://aws.amazon.com/ Choose us-west-2 region. Go to EC2 page. Setup Security Group On the left-hand-side menu -> Network & Security -> Security Groups -> “Create security group” button Under Basic details Security […]
-
Install PHP 8.1 on Ubuntu
If you do not have a server, you may check out Setup EC2 with Instance Connect (https://www.teachonetofish.net/setup-ec2-with-instance-connect/) Install Apache To run a web server, you need to install Apache first. Apache rewrite Apache rewrite allow you setup the routing which is good for SEO. Add the highlight code below. Press “i” to change to insert […]
-
IAM Switch to another account role
Create Role Create Policy Create Group Switch role IAM Switch to another account role Login to aws from the account that you want to share resources to others. Create Role IAM -> Role -> Create Role Trusted Entity Type -> AWS account AWS account ID (12 digits) Options -> leave blank Permission -> Search AmazonS3ReadOnlyAccess […]
-
How to use CodeCommit
What is AWS CodeCommit? AWS CodeCommit is a version control service hosted by Amazon Web Services that is Git server on AWS. Why you want to use CodeCommit? Copy from https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html Setup for HTTPS users using Git credentials The simplest way to set up connections to AWS CodeCommit repositories is to configure Git credentials for CodeCommit […]
-
AWS Cloud9 CLI for Amazon Linux 2
Linux Update Update AWS CLI Install Python SDK boto3 Setup/Check AKSK Setup AKSK Read current temporary AKSK Role Check current IAM Role Check other Role Get user info Meta Data Check Meta-data jq Install jq Test jq AWS Cloud9 CLI Create a new Cloud9 in us-west-2. Select t3.small Linux Update Run: sudo yum -y update […]
-
Setup Cloud9 Ubuntu 1804
AWS Cloud9 CLI Create a new Cloud9 in ap-east-1. Linux Update Run: Output: Update AWS CLI Check current AWS CLI version. It should be version 1.x Run: Output: Update AWS CLI Run: Output: Reboot to use the CLI version 2. Run: Output: Install Python SDK boto3 Run: Output: Setup/Check AKSK Setup AKSK Run: Output: Read […]
-
SageMaker demo3 house sale
House Sales in King County, USA We will use the dataset from kaggle for this lab. Please download it from the link. This dataset contains house sale prices for King County, which includes Seattle. It includes homes sold between May 2014 and May 2015. It’s a great dataset for evaluating simple regression models. Run: Output: Prepare the data […]
-
SAGEMAKER DEMO 1 – Fixed Deposit
SAGEMAKER DEMO 1 – Fixed Deposit As a sales manager in a bank, you are asked to increase the bank revenue by finding customer to do fixed deposit. Instead of cold call each client, can we use Machine Learning to find the potential customers? Step 1: Create an Amazon SageMaker notebook instance Firstly, you create […]
-
Convert mov to mp4 in Mac for free
By default, if you do screen recording in Mac, it is saved as QuickTime .mov format. If you want to convert to mp4 for more common format in the public and smaller file size, you can use ffmpeg to do it. Install ffmpeg by Brew. Then run command in terminal. That’s it. The file in […]
-
Protected: CUSCS – Certification in Machine Learning – Machine Learning Algorithms
There is no excerpt because this is a protected post.
-
Hong Kong Security Watch Report (Q4 2022) 香港保安觀察報告 (2022年第四季度)
Reference from hkcert.org. https://www.hkcert.org/tc/watch-report/hong-kong-security-watch-report-q4-2022 Tips for Safe Online Shopping 網上購物安全貼士 Security Advice Malicious email is one of the spreading channels of AgentTesla. Moreover, different variants of AgentTesla have already appeared on the Internet. Hence, HKCERT recommends users to: 保安建議 AgentTesla 的其中一個傳播途俓是以惡意電郵附件誘導用戶開啟,而網上更已出現多個變種版本,因此HKCERT 建議用戶: