Grep tips and tricks

Grep configuration file without comments:
grep -Ev "(^[[:blank:]]*#|^$)" /etc/nginx/nginx.conf

Grep log file without unwanted messages:
grep 'Nov 17' /var/log/syslog | egrep -vi "\[UFW BLOCK\] | CRON"