Why __dirname is not defined in ES module scope, thats why error shows up Solution You first need to import…
Web dev
HTML & CSS & HTML5
Google Fonts is evil and violate GDPR
Why Google Fonts is evil More resources Alternative
![](https://ookangzheng.b-cdn.net/wp-content/uploads/2022/06/shubham-dhage-MpL4w1vb798-unsplash-363x188.jpg)
Auto updates dynamic IP via Cloudflare API (DDNS)
Dynamic IP vs Fixed IP Dynamic IP A dynamic IP address is a temporary address for devices connected to a…
![](https://ookangzheng.b-cdn.net/wp-content/uploads/2022/05/jeremy-lanfranchi-2Lc5qrZdmxc-unsplash-363x188.jpeg)
Caddy server acme challenge with Cloudflare DNS
Server environment Download Caddy with Cloudflare DNS plugin https://caddyserver.com/download with dns.providers.cloudflare plugin Set up a Cloudflare Token API https://dash.cloudflare.com/profile/api-tokens Permission:…
![](https://ookangzheng.b-cdn.net/wp-content/uploads/2022/02/thomas-jensen-h3vT1Kp0FxA-unsplash-363x188.jpg)
Accelerate China region browsing experience via AliYun Global Accelerator
Setup AliYun GA Setup HAProxy / Nginx to load subdomain HaProxy solution Nginx Solution
![](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/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/maxwell-nelson-Se9ufo2dO_g-unsplash-tuya-363x188.jpg)
Debian 10 configure PHP7-fpm with Nginx
A simple tutorial shows how to install PHP7 fpm on Debian.
![](https://ookangzheng.b-cdn.net/wp-content/uploads/2020/05/launchpresso-IOM28XWsk-g-unsplash-1600-363x188.jpg)
WordPress add custom feilds in Post Category
Solution 1: Add code Inside your themes directory funcitons.php , add code below Screenshot Solution 2: Advanced Custom Field Image…
![](https://ookangzheng.b-cdn.net/wp-content/uploads/2020/05/npm-package-registry-1200-610x610.jpg)
Deploy NPM package to Github package registry
This article will demonstrate how to publish a package to Github package registry.