Everyone knocks writing down passwords, but it helped us tremendously that a year prior to my dads death he and my mom went through all their accounts and got usernames and passwords on a sheet of paper.
The one that was forgotten was his cellphone pin; would have been nice to get a copy of his photos (encrypted Samsung)