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
import os | |
from PIL import Image | |
files = os.listdir('.') | |
files = filter(lambda x: not x.endswith('.py') and not x.startswith('ex_'), files) | |
sizes = set() | |
min_size = 600 | |
for file in files: | |
im = Image.open(file) | |
if im.size[0] > im.size[1]: |
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
// 2022-04-03, tested with Chrome 99.0.4844.84 on MacBook Pro m1 | |
/* | |
Open chrome://flags/ | |
F12 open developer console, swtich to tab "Console" | |
Paste below codes | |
- input backup() to download flags backup file | |
- input restore() to select one backup to restore | |
*/ | |
function saveFile(filename, data) { |
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
location /publish/dev/app/ws { | |
proxy_pass http://test:80; | |
# include conf.d/ws.txt; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_pass_request_headers on; | |
proxy_pass_header Server; | |
real_ip_header X-Real-IP; |
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
location /test/ { | |
proxy_pass http://test:9000; | |
# include conf.d/proxy.txt; | |
proxy_redirect off; | |
proxy_pass_request_headers on; | |
proxy_pass_header Server; | |
real_ip_header X-Real-IP; | |
# proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $http_host; | |
proxy_set_header X-Scheme $scheme; |