Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on macOS

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

  1. Print Mac OS X operating system version information.

    sw_vers -productName
    
  2. You can use Homebrew to install applications in Mac similar to the command apt-get or wajig in Debian series of Linux …

Traveling Without Hassle

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

General Tips

  1. Have a good rest (especially the night) before long trips (especially road trips) .

  2. Check Google map and get familiar about the route for road trips.

  3. Download Google offline maps …

Tips on "sed"

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

Alternatives

  1. sad is a simpler alternative to sed. sad is implemented in Rust and has built-in integration of fzf, which makes it easy to visually inspect changes.

  2. For complicated text substitutions …

Vim Keybindings in Firefox Using Tridactyl

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

:mode ignore: temporarily disables Tridactyl on a page. ctrl + alt + esc: toggle ignore on/off on Mac ctrl/cmd + g: next search result shift + ctrl/cmd + g: previous search result

Tricks …