What did you do for showering, cooking, etc?
Friends and allies, beach and camping showers, gyms, pirate bath.
I did not cook much, and just ate things like nuts, bread, and cheese. But I had a simple wood stove that runs on little sticks. (Look up rocket can stove.)
Generally speaking, for most things, it was just a matter of "stay calm and improvise".
It helps to have a habit of leaving every place cleaner than you found it.
It sounds like your friend had other options, and you were able to remain friends?