All you need to do this, is inside this great tutorial:

https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the-technical-details