Skip to content

Instantly share code, notes, and snippets.

@migaes
migaes / cors-nginx.conf
Created May 2, 2017 14:21 — forked from michiel/cors-nginx.conf
Wide-open CORS config for nginx
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
#
@migaes
migaes / gist:b7dea2ebbafbefc3ee9a987d628c406d
Last active April 9, 2017 18:11
My day-to-day commands
### Add tag on the current state of the branch you are
$ git tag release01
$ git push origin --tags
---------------------------------------------
### Remove a tag
$ git tag -d release01
$ git push origin :refs/tags/release01
---------------------------------------------
### Search for a string on multiple files
$ find . -name *.conf -exec grep -n serverName {} \; -print