We often came across spitting cobra's in our garden when we lived in Botswana, the dogs fortunately gave us a heads up by barking like crazy and jumping around them, on with the shades hit them with a spade and throw them over the wall and wait for an eagle to come and pick them up....
