Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on Git Submodule

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

git submodule init
git submodule add git@github.com:dclong/docker_image_builder.git
git submodule update --recursive --remote

To remove a Git submodule.

git rm submodule

Module Already Exists in Index.

in …

Tips on winget

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

You can search for packages on https://winget.run/.

winget search grep
winget install grep

Notice that winget does not handle the PATH environment if you install a command-line tool. You …

"." Is Not Recognized as An Internal or External Command

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

I encountered the following error message when running a Windows command !./osqueryi.exe .tables in the IPython shell.

In[15] >>> !./osqueryi.exe .tables
'.' is not recognized as an internal or external …

Query and Monitor OS Information using osquery

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. List all tables.

    .\osqueryi .tables

  2. Check the schema of a table (e.g., "process").

    .\osqueryi ".schema processes"

Querying System Information

.\osqueryi.exe "select * from system_info"

Querying Docker

Please refer to Manage …