Skip to content

Instantly share code, notes, and snippets.

View mmckegg's full-sized avatar

Matt McKegg mmckegg

  • Wellington, New Zealand
View GitHub Profile
@plentz
plentz / nginx.conf
Last active April 24, 2024 11:15
Best nginx configuration for improved security(and performance)
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@mmckegg
mmckegg / find-trailing-commas.regexp
Created May 30, 2013 03:05
Regexp to find trailing commas in javascript files that throw errors in IE and destroy everything!
,\s*\n+(\s*\/\/.*\n)*\s*[\}\)\]]