Usually in mountain gorillas, when groups come across each other in the forest, the male-male interactions are quite aggressive, involving chest-beating displays and sometimes even physical violence. Similarly, in Ireland, as a particular species of males, generally known as skangers, pass each other they display similar aggressive actions. These actions are known as throwing shapes and can involve head movements, fist movements and strange methods of walking.
Usually said after saying something smart or intelligent.
A longer version of the sentence is 'Up here for thinking, down there for dancing, out there for shaking and down here for making' Usually one would point to their head then feet for the shortened sentence. If lengthened one should then shake their hands and then point to their mid section while saying the last two things.