Category: Blog

  • GCP Cloud Storage

    Zonal persistent disk: Efficient, reliable block storage. Regional persistent disk: Regional block storage replicated in two zones. Local SSD: High performance, transient, local block storage. Cloud Storage buckets: Affordable object storage. Filestore: High performance file storage for Google Cloud users. Creating storage buckets gsutil mb gs://BUCKET_NAME Upload from local to Cloud Storage gsutil cp -r…

  • Clear All Generic Credentials from Credential Manager

    for /F "tokens=1,2 delims= " %G in ('cmdkey /list ^| findstr Target') do cmdkey /delete %H in PS: [Windows.Security.Credentials.PasswordVault, Windows.Security.Credentials, ContentType = WindowsRuntime] $pv = [Windows.Security.Credentials.PasswordVault]::new() $pv.RetrieveAll()| Select Username -Unique | ForEach-Object{ $pv.FindAllByUserName($_.UserName) } | ForEach-Object{ $pv.Remove($_) }

  • GCP VPC – Virtual private cloud

    Create a VPC Network Creating firewall-rules Configuring network tags … Create a VPC Network Given that: tdc-shared-services: The Data Center shared service project tdc-shared-vpc: The Data Center shared Virtual Private Cloud –region: Iowa, us-central1 tdc-shared-vpc-subnet: The Data Center shared Virtual Private Cloud Subnet MTU: Maximum transmission unit gcloud compute networks create tdc-shared-vpc –project=tdc-shared-services –description=The\ tdc-shared-vpc\…

  • Remote Desktop on Windows 11 with Microsoft Account MFA

    This is the guide to use Remote Desktop on Windows 11 Pro with Microsoft Account logged in and enabled MFA. On Windows 11 Pro (also Windows 10 Pro), If the user has signed in to Microsoft Account and enabled MFA, so the Local Account password is swept out once switching to Microsoft Account and we…

  • Sencha Extjs: Solution for Ext.grid.Tree with locked column?

    Solution for Ext.grid.Tree to support the locked colomun (freeze column) in Sencha Extjs 7 Modern toolkit? Nam Le While working with Sencha Extjs, in your application, you have a component that is Ext.grid.Tree and the TreeStore, you want to make the first column/ or some columns locked (like freeze collumn) but the Ext.grid.Tree is not…

  • Slide Django introduction

    The version in the slide was 2.2.7 and the latest Django version now is 3.2.7 (on Sep 2021), but the concept is the same 🙂 TL;DR On May 2019, I had involved to a project hand-over from onshore team, one year was the period time for maintenance the whole project. This project is used by…

  • GCP Computer Engine with gcloud-compute

    The gcloud compute command group lets you create, configure, and manipulate Compute Engine virtual machine (VM) instances. Ref: https://cloud.google.com/sdk/gcloud/reference/compute List projects, regions, zones, VMs: gcloud projects list gcloud compute zones list gcloud compute regions list gcloud compute instances list Get values: gcloud config get-value project gcloud config get-value compute/zone gcloud config get-value compute/region Metadata server…

  • Cannot Import the *.bak to GCP Cloud SQL not a supported compatibility level

    At the time, May 25th 2021, When performing importing the *.BAK to the GCP SQL Cloud, the SQL Cloud Instance is running SQL Server 2017 Standard. ERROR: (gcloud.sql.import.bak) [ERROR SQL SERVER EXTERNAL WARNING] 120 is not a supported compatibility level. Supported: [140, 130, 120, 110, 100] My local SQL Server 2014, version: 120 GCP SQL…

  • Sencha ajax call and store load canceled after 30 seconds

    The topic discussion is on stackoverflow too old but FYI who want to do the quicky trick. The default of Ajax call in Sencha is 30000 milliseconds (30 seconds) So, you have to set a config to the default behavior in the Ext.data.proxy.Ajax, for example, 60s, like: Ext.define('Core.data.proxy.WrapperAjax',{ extend: 'Ext.data.proxy.Ajax', alias: 'proxy.wrapperAjax', config: { timeout:…

  • Run macOS BigSur VMWare on AMD Laptop

    As the previous post Install MacOS Catalina On VMware AMD Laptop, I have upgrade my macOS Catalina VMWare to the BigSur. During upgrading, I have backed-up a copy of VMDK macOS BigSur. Below is my new laptop specìication: ASUS Zenbook UM425IA-NH74 AMD Ryzen 7 4700U Processor (8M Cache, up to 4.1 GHz) 1 TB PCIe…

  • TCP forwarding with Identity-Aware Proxy – P2

    Allows you to authenticate user TCP traffic through IAP before sending it to your VM instances. And what’s more, this also works for private VM’s without an external IP address. So no need for VPN or a bastion host! IAP for TCP forwarding gcloud compute start-iap-tunnel VM_NAME VM_PORT [–local-host-port=LOCAL_HOST_PORT; default="localhost:0"] [–zone=ZONE] [GCLOUD_WIDE_FLAG …] Example: to…

  • An overview to GCP – Google Cloud Platform – P1

    The Google Cloud Platform (GCP) is a suite of cloud services that offers server space on virtual machines, internal networks, VPN connections, disk storage, machine language SaaS (Software as a Service) applications, and even something called TPU (Tensor Processing Units). To brief some keynotes while  I worked with GCP, here are some tasks that using the…