I’ll keep updating this post as I come across new stuff.



The external hard drive is detected.. but won’t mount? grep for the fsck process, kill it. Voila. (fsck is short for ‘file system consistency check’)


Want to export all your notes from the Mac’s Notes app?

There’s this cool thing called AppleScript which you can use to automate stuff for your Mac. To export your Notes to HTML files, you can use this handy script,
https://github.com/alexwlchan/notes-export/blob/master/notes-export.scpt

But it won’t export the media attachments present in your notes. If you want a backup of the same, cd to
/Users/username/Library/Group Containers/group.com.apple.notes/Media

Then in terminal execute this command,
find . -not -type d -print0 | xargs -0J % mv -f % . ; find . -type d -depth -print0
This command copies files from subdirectories and pastes them in the working directory. Picked this up from,
https://superuser.com/questions/658075/how-do-i-move-files-out-of-nested-subdirectories-into-another-folder-in-ubuntu

Then you can save all the media as well.