How do I make a snake repellent
Install snake fencing.
If you have resident snakes you either have a place for them to hide or a reliable food source, i.e. rats, mice, etc. Clean up the yard and they will move on.
this may help: https://pestkill.org/other/snakes/repellents/
Mothballs (naftalina), they don't like the smell