git ignore more then 10MB

C++
find . -size +100M | cat >> .gitignore
Source

Also in C++: