Installation Add asdf to zsh ZSH & Homebrew Add asdf.sh to your ~/.zshrc with: ZSH & Git Add the following…
Dev
asdf manage multiple version Terraform with GCP
Last update: 2022-08-03 We will use asdf as version manager with Terraform. Installation I will use Homebrew (Mac) + zsh…
![](https://ookangzheng.b-cdn.net/wp-content/uploads/2021/08/joshua-aragon-eab4ml7c7fe-unsplash-medium-363x188.jpeg)
The power of regex in VSCode
Remove lines Example raw data Solution Remove all top level domain with new lines Search with ^xxx.io$ , replace with…
![](https://ookangzheng.b-cdn.net/wp-content/uploads/2021/07/bernard-hermant-1ndw7bjbj1s-unsplash-large-363x188.jpeg)
Docker shadowsocks on Debian
Installation Grab a VPS dual stack IPv4/IPv6 with Debian 10. Install docker Setup docker Source: https://hub.docker.com/r/teddysun/shadowsocks-rust Setup iptables firewall Setup…
![](https://ookangzheng.b-cdn.net/wp-content/uploads/2021/07/gareth-davies-1crn-ibvth0-unsplash-large-363x188.jpeg)
Update and migrate installed global NPM package with nvm
Check current npm version Update to latest LTS Nodejs But, command that I installed globally not found Solution, with reinstall…
![](https://ookangzheng.b-cdn.net/wp-content/uploads/2021/06/chuttersnap-cgxdjyp6-nu-unsplash-large-363x188.jpeg)
CDK Bootstrap failed due to S3 bucket existed
Error: Lower version of bootstrap stack version Source from Stackoverflow: https://stackoverflow.com/questions/62972959/aws-cdk-error-bucket-policy-already-exists-on-bucket Due to Cloudformation doesn’t allow custom bucket handle by…
![](https://ookangzheng.b-cdn.net/wp-content/uploads/2021/06/peter-okwara-0akiuil4cyk-unsplash-large-363x188.jpeg)
AWS CDK Wafv2 enable logging the Custom Resource way
Expectation We need to collect all WAF logs to S3 bucket. But Cloud Formation or AWS CDK cannot easily configure…
![](https://ookangzheng.b-cdn.net/wp-content/uploads/2021/03/emilio-garcia-lb9hi0NDjT0-unsplash-1600-1568x1054.jpg)
Serving WordPress with Caddy 2
Caddy config: /etc/caddy/Caddyfile Nginx config Fixing SSL error on WordPress Add code below in to wp-config.php Source: 1. https://metalcoder.dev/how-to-get-wordpress-working-with-https-behind-a-reverse-proxy/2. https://bensmann.no/caddy-server-wordpress/…
![](https://ookangzheng.b-cdn.net/wp-content/uploads/2021/02/keagan-henman-IEEpZnxOoJI-unsplash-1600-363x188.jpg)
Fix Mozilla Firefox Mac Canvas display wired
If you got something like this happened on Firefox Mac, you should disable some setting Go about:config Search for privacy.resistFingerprinting…
![](https://ookangzheng.b-cdn.net/wp-content/uploads/2020/07/yancy-min-842ofHC6MaI-unsplash-tuya-363x188.jpg)
General command for git
Useful collection of git command