Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on fd

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

Installation

wajig install fd-find

The install binary is fdfind.

Example Usages

  1. Find all directories under $dir.

    fdfind --type d . $dir
    
  2. Find all files under $dir.

    fdfind --type f --print0 . $dir
    

References …

Ruff Is An Extremely Fast Python Linter Written in Rust

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

Use ruff In a uv Managed Python Project

uv run ruff check 
uv run ruff format .

Use ruff Standalone

The most convenient way to use run ruff standalone is via uvx …

Configuring Terminal in Visual Studio Code

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

Configure The Shortcut ctrl+x ctrl+e

The shortcut ctrl+x ctrl+e edits a bash prompt using $EDITOR in terminals. However, this doesn't work out-of-the-box in the teminal in Visual …