Skip to main content

· One min read
Hung Viet Nguyen

Recently, I migrated a documentation page from Gatsby to Docusaurus. However, after I deployed a new version of the docs but I still see the cached version of the old docs. The reason is that the Gatsby version of the docs has a service worker that caches the artifacts. So, I need to remove the old service worker manually via Chrome Devtools.

· One min read
Hung Viet Nguyen

git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - error: cannot run gpg: No such file or directory error: gpg failed to sign the data fatal: failed to write commit object

Answer:

git config --global gpg.program "$(which gpg)"

· One min read
Hung Viet Nguyen

You can convert audio/ video files to mp3 format using ffmpeg by:

ffmpeg -i input.mov -c:v copy -c:a libmp3lame -q:a 4 output.mp3

This is handy when you trim the video/ audio when using QuickTime on macOS (since the extension will be .mov or .m4a)