I often go to some cities in Asia and sometimes will see someone who lives on the street. Many times they are sleeping during the day since it’s so hot and sometimes they look malnourished too. What would be the best foods I could provide them (assuming some restaurants or convenience stores are nearby) which would not spoil?
Donate to the local temple. Don’t give out handouts directly. It will just draw attention to yourself.
Find a local street vendor, and pay them money to feed that person multiple times.
If you must hand out food directly, hard boiled eggs last a while, Mama is popular, jerky last awhile.