Thursday, August 6, 2020

Javascript learning on the way

Curry: 


Apply and Call : Both take first argument to change the its current context, 


The call() method takes arguments separately.

The apply() method takes arguments as an array.

Wednesday, July 22, 2020

Updating Google AMP cache

Recently I have a chance to work with Google AMP for some Wordpress Sites, Here is what i have done to be able to update AMP cache for any URL of the sites.

Here i created a repository for my implementation: https://github.com/vanduc1102/php-amp-update-cache

Please refer to the official document here: https://developers.google.com/amp/cache/overview

Using Site Ground Git to deploy your Wordpress Site

Site Ground Git gives us an option to have some sites such as staging or test  to make our developer life easier.


In the screenshot above, we have 2 sites for testing before roll-out to production.

In order to push code to testing sites, you need to register your SSH key first,


After created a SSH key, simply upload the public key via Manage SSH Keys,  Remember to authorized the key.



In case you already has a SSH key and want to use a new SSH key, you can specify the new SSH key per folder which contains your source code


When everything is ready, add the Site Ground repository as a remote track, and push the change to master.



That is it, happy coding.

Here is the git setup guide from SiteGround: https://www.siteground.com/tutorials/sg-git/

Tuesday, July 14, 2020

AWS workshop in HCMC - Kubernetes on AWS with Amazon EKS

I attended the workshop on Jul 14 2020

Summary the of the workshop


I have learned a new term of CDK - Cloud Development Kit,

They use Cloud9 - An online VS Code version to code the CDK, we practiced creating an infrastructure using TypeScript

https://cdkworkshop.com/20-typescript.html