Thumb one’s nose at
This gesture of ridicule made by placing the thumb on one’s nose and fanning the fingers is very old, although this particular expression of it is quite modern from the late 19th/early 20 century. As such it is a modern version of cocking a snook at someone.