here's what i would do?
1. call any family or friends you still have and see if they'll let you stay with them for a little while until you get things back together.
2. put in an online application for ebt immediately. tell them that you're homeless and have no money. they'll give you a ebt/ food card for like $150 per month.
https://www.mybenefitscalwin.org/mbp/create/county.htm?lang=en_US
if you need food, find out where the food banks are near you or find out where the nearest calfresh office is and they might give you an ebt card the same day.
3. if you have any credit, apply online for some credit cards right away. you're going to need them.
4. look for a weekly motel room like $100 or $150 per week. Some motels will let you stay for free if you say you clean rooms.
Or find a roommate on craigslist.org that you can share a place with.
5. take a job right away anywhere will help you keep yourself together. it's a little easier when you're working with other people and you don't feel like you're always alone. apply for any work part time or full time will help keep you together like a warehouse or a cleaning job or a fast food restaurant job. most fast food places will let you eat all that want. or, maybe try a manpower or labor ready temporary work agency.
6. fill out the student loan application on the fafsa.gov website. then, sign up for some classes at one of the less expensive state colleges or community colleges. you will have to apply to a school and register for classes. you tell them that you want the maximum loan and they will send you a rebate check to live off of while you're in school. you can stay on a student loan for more than 6 years if you follow the rules correctly. they won't send it right away, this may take you up to 4 weeks to get a check back.
7. if you need stuff like clothes, you can order stuff through an easy credit online catalog like amerimark, fingerhut, or ginnys. they give credit to almost anyone.
8. if you have an old checkbook, see if you can write some checks in some stores for the stuff you need. bounce a few checks if you have to and load up on some stuff. most stores will let you bounce 2 or 3 checks before they say no more.
9. if you were working before, you might be able to file for california unemployment.
10. find an empty house that looks safe.
this website sells inspector keys. they can get into 50% of the houses.
http://www.mfssupply.com/Inspector-Key-Packet
11. this dude told me about sneaking into office buildings and looking for an empty office to sleep in.
12 buy some bolt cutters and a hammer. find a house for sale with a key safe. cut the key safe off with the bolt cutters and break open the key safe with the hammer while no one is watching. it's risky but i would try it rather than sleep outside. the bolt cutters can also be used to cut bike chains if you need to steal a bike for transportation.
13. take a job with a hotel as a desk clerk or as housekeepiing and they might let you sleep in one of the rooms.
good luck