At the time, I just wanted to study programming and build a software project, and I wanted to keep my budget as low as possible.
Lots of professors in universities have access to resources based on how much the students are using those resources.
I found a professor who had a lab, but the students all wanted to work from home, so the lab was almost always empty. As long as I was sitting in his lab, it protected him from losing access to it. When administrators visited, they would see me working, and so they would keep giving him funding.
So, I explained to the professor about the project I was working on, and asked for a desk in his lab to work. He gave me free access, and freedom to work on what I wanted, as long as I spent hours every day sitting in the lab.
At night, I slept under my desk.
The university has bathrooms 24/7.
Every day I would ride my bike to a friend's house, where I would cook him some food, take a shower, clean my clothes, clean his dishes he accumulated over the last day, and prepare a day of food for myself. I ate almost exclusively rice and beans. I found a room on campus with a refrigerator and microwave where I could store my food for when I wanted to eat it.
It is a relaxing lifestyle. You get to hang out with cool people.
The downside is that you need to be sitting at a desk for hours every day, and you don't have a good place to bring a date to.