One thing has helped me, because I remember one night, coming home to my wife to tell her I got fired, AGAIN, I was going to walk across a bridge and jump, rather than tell my wife. But last minute, beforeven I reached the bridge, I just told myself, "if you wanna do it, kill yourself tomorrow". My mind knew I was dissociated beyond belief and I was sleep deprived, and if I was really gonna off myself, that it would be better to make my mind up after a good nights sleep. in the morning I didn't even think about it. It wasn't until the evening I realized that I really didn't want to die, my mind was just everywhere that night.
It's kind of a sick joke to myself that if I'm having these serious thoughts of suicide, I tell myself "you can kill yourself tomorrow". But I only say that because I know myself. Other than being a grouch before my morning coffee and smoke, I'm very stable in the mornings. I know I'm not going to kill myself in the morning.
Please don't take my advice unless you're sure it will protect you. Stay safe.