Assuming I don't immediately die (honestly would hope I did in that situation) I am very stubborn and would probably persist.
I have been into programming and electronics for almost my whole life (assuming I had any way to power them), love cooking, ferment and can foods all the time and have a good sized garden and a big grow tent with mushrooms in it. I also have several fish tanks with plants so I'm sure I could rig up some aquaponics system. And my wife is a nurse so I'm always learning a lot from her. Even built a backyard mini forge and kiln once because I was bored.
Just don't make me kill any animals and I think I'll be ok (unless the animals were injured and needed to be put down or in self defense). If someone else did all the hunting I'd happily do the butchering, though.