Author: Teach One To Fish

  • VS Code configs

    VS Code has many features but also it will have different settings in different computer. Some common setup can be found below. Configure display Language Change display language. Ctrl+Shift+P -> Configure display language -> Select your language https://code.visualstudio.com/docs/getstarted/locales Terminal Profiles If you can open terminal, then you can switch to another terminal from the terminal…

  • Hacking news

    Hacking news

    This is a page of hacking news. Carousell 遭外媒揭發 涉 260 萬用戶資料外洩或遭轉售 官方向用戶發信稱偶發事件2022年10月24日週一 https://hk.news.yahoo.com/%E5%A4%96%E5%AA%92%E7%88%86-carousell-%E8%B3%87%E6%96%99%E5%A4%96%E6%B4%A9-%E6%B6%89-260-%E8%90%AC%E5%B8%B3%E6%88%B6%E8%B3%87%E6%96%99-carousell-%E5%90%91%E7%94%A8%E6%88%B6%E7%99%BC%E4%BF%A1%E7%A8%B1%E5%81%B6%E7%99%BC%E4%BA%8B%E4%BB%B6-155537104.html?fbclid=IwAR2w9C-sRPrTJy2M-nH1QLWDLjdW4qXE1KM9aC80Jr6i3eocP5HqncEoQ6c 近日出現大量海外簽帳 渣打信用卡疑被集體盜用2022年12月8日週四 https://hk.news.yahoo.com/%E8%BF%91%E6%97%A5%E5%87%BA%E7%8F%BE%E5%A4%A7%E9%87%8F%E6%B5%B7%E5%A4%96%E7%B0%BD%E5%B8%B3-%E6%B8%A3%E6%89%93%E4%BF%A1%E7%94%A8%E5%8D%A1%E7%96%91%E8%A2%AB%E9%9B%86%E9%AB%94%E7%9B%9C%E7%94%A8-203024484.html

  • Setup EC2 with Instance Connect

    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…

  • AWS DynamoDB CLI

    AWS DynamoDB CLI

    AWS DynamoDB CLI Make sure your json file is UTF-8 without BOM. Make sure your json file is UTF-8 without BOM. Make sure your json file is UTF-8 without BOM. Find current region Run: Output: List all Dynamodb tables Run: Output: List local Dynamodb tables Run: Output: Describe one Dynamodb tables We had one preset…

  • AWS Cloud9 CLI

    AWS Cloud9 CLI

    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…

  • AWS S3 CLI

    AWS S3 CLI

    AWS S3 CLI You can use the AWS CLI in Mac, Linux or Windows. Make sure you did setup the AKSK in your computer or use Cloud9 to do these tasks. CLI help Run: Find current region Run: Output: Create bucket Create bucket current region Run: Output: Create bucket in another region Run: Output: Remove…

  • Composer in ISPConfig

    Install Composer in ISPConfig Find the user of your domain from the ISPConfig admin panel. It should be web[number], EG. web1. Login SSH as root. Modify /etc/passwd, search web?, Change /bin/false to /bin/bash Change folder protection. Be Careful Change folder ownership login as web user Download and install composer (one time only). Check composer Output: Composer…

  • AWS API Gateway HTTP

    AWS API Gateway HTTP

    (Continue from https://www.teachonetofish.net/aws-lambda-function-url/) Amazon API Gateway is an AWS service for creating, publishing, maintaining, monitoring, and securing REST, HTTP, and WebSocket APIs at any scale. API developers can create APIs that access AWS or other web services, as well as data stored in the AWS Cloud. It support 4 API types: HTTP API WebSocket API…

  • AWS Lambda Function URL

    AWS Lambda Function URL

    AWS Lambda is a serverless compute service which can work with other AWS services in a private AWS environment. It is very powerful and low cost but it does not have a public URL for public to invoke the function. So we must use API Gateway as a frontend then pass the request to Lambda,…

  • AWS Kinesis

    Kinesis Data Streams Kinesis Data Streams is for use cases that require custom processing, choice of stream processing frameworks, and sub-second processing latency. Each shard can support up to 1,000 PUT records per second. However, you can increase the number of shards limitlessly. One shard provides a capacity of 1 MB/sec data input and 2…