An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| more_set_headers "Access-Control-Allow-Origin: $http_origin"; | |
| more_set_headers "Access-Control-Allow-Credentials: true"; | |
| # OPTIONS indicates a CORS pre-flight request | |
| if ($request_method = 'OPTIONS') { | |
| more_set_headers "Access-Control-Max-Age: 1728000"; | |
| more_set_headers "Access-Control-Allow-Methods: GET, POST, PUT, DELETE, PATCH, OPTIONS"; | |
| more_set_headers "Access-Control-Allow-Headers: Authorization,Content-Type,Accept,Origin,User-Agent,DNT,Cache-Control,X-Mx-ReqToken,Keep-Alive,X-Requested-With,If-Modified-Since"; | |
| more_set_headers "Content-Length: 0"; |
While I'm learning how to use Nginx, I was instructed to update the server_names_hash_bucket_size (/etc/nginx/nginx.conf) value from 32 to 64, but I don't understand why should I increase the value to 64.
References that have been read so far:
| from PIL import Image | |
| from scipy.ndimage import gaussian_filter | |
| import numpy | |
| import pytesseract | |
| from PIL import ImageFilter | |
| def solve_captcha(filename): | |
| # thresold1 on the first stage | |
| th1 = 140 | |
| th2 = 140 # threshold after blurring |