How to allow CORS (cross-origin/domain) API calls with nginx.
For nginx see the following:
The code as per nginx docs, can be placed under: http, server or location, so you can decide how fine grane access you wish to allow.
How to allow CORS (cross-origin/domain) API calls with nginx.
For nginx see the following:
The code as per nginx docs, can be placed under: http, server or location, so you can decide how fine grane access you wish to allow.
[alias] | |
co = checkout | |
ci = commit | |
st = status | |
br = branch | |
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short | |
type = cat-file -t | |
dump = cat-file -p | |
publish = "!git push --set-upstream origin \"$(git rev-parse --abbrev-ref HEAD)\"" | |
refresh = "!git pull origin \"$(git rev-parse --abbrev-ref HEAD)\"" |
{ | |
"PDB set trace": { | |
"prefix": "pdb", | |
"body": ["import pdb; pdb.set_trace()$0"] | |
}, | |
"iPDB set trace": { | |
"prefix": "ipdb", | |
"body": ["import ipdb; ipdb.set_trace()$0"] | |
}, |
#!make | |
################################################################################ | |
# Makefile internals | |
################################################################################ | |
.PHONY: help | |
help: | |
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' Makefile | sort | \ | |
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-6s\033[0m %s\n", $$1, $$2}' |
#!/usr/bin/env python3 | |
import argparse | |
import math | |
import time | |
from datetime import datetime | |
import pyautogui |