Ben Chuanlong Du's Blog

It is never too late to learn.

Powershell on Windows for GitHub Actions

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

PowerShell on Windows

Set PATH

echo "::add-path::./swigwin-4.0.1"

echo %programfiles% echo ::set-env name=ProgramFilesPath::%programfiles%

https://stackoverflow.com/questions/60169752/how-to-update-the-path-in-a-github-action-workflow-file-for-a-windows-latest-hos

https://docs.github.com/en/free-pro-team@latest/actions …

Dual Boot Linux and Windows

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

Mount the Windows File System

When you dual boot your machine with Linux (e.g., Ubuntu) and Windows, the Windows disk/partition might not be mounted automatically. In that case, you …

Tips on WSL 2

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

Installation & Update

Run the following command in an command window with administrator privileges to install WSL 2.

wsl --install

Run the following command to check the version of WSL.

wsl -l …

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 …