Tuesday, December 27, 2016

MacOS 10.12: auto mount network drive

Since 10.12, auto-mounting a network drive via Login Items asks to confirm the login and password each time we log in. Very unpleasant.
To get rid of that behavior:
  1. Remove the network drive from the Login Items
  2. Drag and drop the network drive to the dock
Then, network drive automatically mounted and no more password asked at each login!

[EDIT] The login / password dialog showing up whenever we log in has been fixed in 10.12.2 at last.

MacOS 10.12: screensaver stuck at: Loading photos

rm ~/Library/Preferences/com.apple.screensaver.plist

Thursday, December 15, 2016

Git: list files changed in a branch

git checkout my_branch
git diff --name-only master...