A metaphorical 'hat' worn when a not otherwise snarky person wishes to add some snarkiness to the world. The un-snarky person can then remove the hat and return to normalcy.
Hubert was generally a nice and non-judgmental guy, but sometimes when he put on his snark hat he could really lay into people.