myByways

the road less travelled

Hi! I’m , and welcome to my slice of the Internet!

This is primarily a record of things I’ve learnt, but maybe you’ll find something that interests you too.

Recent Posts

Shell script to move duplicate files

09 Jul 2021macosbash

I setup Firefox on macOS to automatically download files to my “Downloads” folder without prompting (under Preferences... > Downloads, and select Save files to... instead of Always ask you where to save files). If there is an existing file with the same name, Firefox appends (1) to the filename (then (2), (3) and so on). Over time, I land up with files with similar file names, which may or may not be identical. This shell script finds and moves duplicate files to a different folder... for subsequent manual deletion.

Continue reading...

CoreSimulator Crash Loop

19 Jun 2021macos

Last month, one morning, my MacBook (still running Catalina) started behaving strangely - though I was not running anything, it was sluggish as the CPU was too busy and the fans were on high. I traced it to the iOS Simulator service that comes with XCode.

Continue reading...