Ben Chuanlong Du's Blog

It is never too late to learn.

Quickly Open a Directory in Terminal in Mac

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

OpenInTerminal is a Finder Toolbar app for macOS to open the current or selected directory in Terminal, iTerm, Hyper or Alacritty.

Installation and Configuration

  1. Install OpenInTerminal

    brew cask install openinterminal
    
  2. Launch …

Get Coordinates of Points on a Screen or Image

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

Get the Coordinate of a Pixle/Point on an Image

Most image editing software (e.g., GIMP) can tell you the coordinate of a point on an image.

Get the Coordinate …

Sort top by CPU or Memory Usage

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

By default the result of the top command is sorted by CPU usage on Linux. The table below list options to sort the result of the top command by different criterias …

Mirroring Screen from iPhone or iPad to Macbook

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

5KPlayer

https://www.youtube.com/watch?v=Zc41jJAhozc

QuickTime

Reflector 2

https://www.airsquirrels.com/reflector

  1. I think there is a way to do it directly ...

AirDroid

Works both for IOS …

Fix Xcrun Error in Mac

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

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

xcode-select --install

Reference

https://apple.stackexchange.com/questions/254380/why-am-i-getting-an-invalid-active-developer-path-when-attempting-to-use-git-a