Does undergoing surgery under anesthesia break the fast?
Anesthesia itself does not break the fast because anesthetic gases have no physical substance (jirm), and subcutaneous anesthesia injections do not reach the body cavity (jauf). However, this is on condition that the person is conscious at some point during the fasting hours:
● If they were awake at the beginning of the day, their fast remains valid.
● If they wake up even for a moment before sunset, their fast is also valid.
However, if the surgery involves the entry of foreign substances into the body cavity, their fast is invalidated, and they must make up for that day later.
What is the ruling if someone wipes his head then shaves it - must he repeat it?
If a person performing ablution shaves his head after wiping it during ablution, he is not required to re-wipe his head or repeat the ablution. And Allah the Almighty knows best.
Someone wiped over his shoes after wearing them in a state of purity, then took them off and prayed without them?
Ablution is not invalidated by taking off leather socks or shoes after wiping over them. However, whoever takes them off after wiping must wash his feet only. If he prayed without washing his feet, he must wash his feet and repeat the prayer. And Allah the Almighty knows best.
What is the ruling on preparing food for someone who is not fasting in Ramadan?
It is forbidden to prepare food for someone who is breaking their fast without a valid excuse in Ramadan.
Doing so would be assisting in sin, and assisting in sin is itself a sin.
Allah says {what means}: "but help ye not one another in sin and rancour" [Al-Mai`dah/2]