Sometimes I have this conversation with my friends, because hypotheticals. If I knew the exact second in which I would die, I know exactly what I would do.
I would first delete all self-incriminating files from my hard drives, and then remove the passwords from my computers.
I would then write a meaningless cryptic "suicide note" that would probably result in a Rickroll.
If I have the time, I would probably watch a few My Little Pony episodes.
With my last few minutes, I would submerge my hand into a jar of peanut butter, go into my dumpster with my upper body hanging out, and find a decent-looking position for when my body goes completely limp, hand still in jar of peanut butter.
The crime scene investigators would probably have a blast trying to find out what, and why.