Put the password for the machine and your accounts in an envelope.
Tell the person who will be handling your estate about the envelope and where it is.
Instruct them that if you pass, before the machine is sold or given away they are to wipe the disk or better yet remove the disk and destroy it.
I am currently dealing with a serious health situation. While I should be OK for some time to come, I am wondering how I can prepare the devices I leave behind should I pass unexpectedly, sooner than anticipated.
I am not talking about trying to conceal anything illegal or nefarious, but just general access to my gmail account and laptop computer, where I keep a lot of personal files from many years of my life, such as a daily journal and other personal files. Basically, if I were to pass, I would prefer my laptop to be thrown in the trash as opposed to prying eyes obtaining access to it (it is password protected with Windows 10 operating system, but I assume this could be easy to get around). I think this is what is best for all parties involved. Also, I am not really concerned with Facebook and similar accounts as I am not really active on social media.
Sorry for the morbid topic, but I do think this is something that a lot of people could benefit from considering.