This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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 |