How to use the shake gesture?

Hi there,

I would like to run a function when somebody shakes their device? Are there any modules I can use for this?