Couchsurfing.com for the immediate housing problem, maybe even make a friend you can lean on for the first week and try to get them back with a nice dinner once you got some cash flowing again.
If cost of living/food is a sustained problem, try to save up and fly to a place where that won't be your noose around your neck. Perhaps southeast asia once you've saved a bit. Again couchsurfing for a softer landing there as well.
If you freelance, I see no reason why you need to stay in a place that costs a lot to live in. Move elsewhere.