This is a Western Barred Spitting Cobra (Naja nigricincta). During molting, our little friend needs to drink water. So YouTube user Частный экзотариум feeds him water from a glass. Then, after he's back in his tank, he gives him pats on the back. So apparently cobras are like dogs in that they liked to be petted.
Despite the similarity, I think that I'll stick to dogs.