winget install --source winget --exact --id 7zip.7zip
winget install --source winget --exact --id Adobe.Acrobat.Reader.64-bit
winget install --source winget --exact --id Amazon.AWSCLI
winget install --source winget --exact --id BurntSushi.ripgrep.MSVC
winget install --source winget --exact --id Docker.DockerDesktop
This file contains hidden or 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 logging | |
| def setup_logging(level: str) -> None: | |
| assert level in ('DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'), f"Invalid log level: '{level}'" | |
| logging.basicConfig( | |
| level=getattr(logging, level), | |
| format='%(asctime)s %(name)-30s %(lineno)5d %(levelname)-8s %(message)s', | |
| datefmt='%Y-%m-%d %H:%M:%S', | |
| stream=sys.stdout, |
This file contains hidden or 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
| repos: | |
| - repo: https://github.com/ambv/black | |
| rev: 18.6b2 | |
| hooks: | |
| - id: black | |
| args: [--skip-string-normalization] | |
| language_version: python3.6 | |
| - repo: https://github.com/pre-commit/pre-commit-hooks | |
| rev: v1.3.0 | |
| hooks: |
This file contains hidden or 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
| # git | |
| .git/ | |
| .gitignore | |
| # python | |
| htmlcov/ | |
| .tox/ | |
| .coverage | |
| # vim |
This file contains hidden or 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
| [uwsgi] | |
| socket = %d/uwsgi.sock | |
| chmod-socket = 666 | |
| chdir = %d/.. | |
| wsgi-file = wsgi_gevent.py | |
| callable = app | |
| gevent = 500 | |
| master = true | |
| workers = 1 | |
| stats = 0.0.0.0:5001 |
This file contains hidden or 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
| user nginx; | |
| worker_processes 1; | |
| error_log /var/log/nginx/error.log warn; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |
This file contains hidden or 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
| [tox] | |
| envlist = py36 | |
| skipsdist = True | |
| [testenv] | |
| deps = -rrequirements/dev.txt | |
| commands = pytest --full-trace -x --cov-report term --cov-report html --cov={{ project_name }} | |
| [flake8] | |
| exclude = tests/* |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| if [[ -z ${K8S_JVM_POD} ]]; then | |
| echo "K8S_JVM_POD not defined" | |
| exit 1 | |
| fi | |
| EXEC="kubectl exec ${K8S_JVM_POD}" | |
| CP="kubectl cp ${K8S_JVM_POD}" |
OlderNewer