Monitor System I/O

2023-02-01 00:00:00 +0000

  • lsof

      # e.g. check pid_1, pid_2, exclude pid_3 every second (-r 1)
      # for directory ~
      lsof -p pid_1,pid_2,^pid_3 -r 1 +d ~
    
      # e.g. check localhost TCP connection to ports 80~1024 and smtp
      lsof -i tcp@0:80-1024,smtp
    
      # e.g. check dev
      lsof /dev/disk5s1
    
  • fs_usage

      sudo fs_usage pid
    

Disable Spotlight Search on Directories

2023-02-01 00:00:00 +0000

  • Go to System Settings, Siri and Spotlight, then Spotlight Privacy
  • Drag and drop (or add) directories

I added git repos, .cache, and some big plaintext data folders

Risks by William Arthur Ward

2022-05-23 00:00:00 +0000

Risks

To laugh is to risk appearing a fool.

To weep is to risk appearing sentimental.

To reach out to another is to risk involvement.

To expose feelings is to risk exposing your true self.

To place your ideas and dreams before a crowd is to risk their loss.

To love is to risk not being loved in return.

To hope is to risk despair.

To try is to risk to failure.

But risks must be taken because the greatest hazard in life is to risk nothing.

The person who risks nothing, does nothing, has nothing is nothing.

He may avoid suffering and sorrow, but he cannot learn, feel, change, grow or live.

Chained by his servitude he is a slave who has forfeited all freedom.

Only a person who risks is free.