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 http.client | |
| import logging | |
| import os | |
| import json_logging | |
| import requests | |
| from flask import Flask, Response | |
| from flask_caching import Cache | |
| from healthcheck import HealthCheck, EnvironmentDump | |
| from prometheus_client import CollectorRegistry, generate_latest |
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
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # https://toster.ru/q/72866 | |
| # How to | |
| # wget http://gist.github.com/... | |
| # chmod +x ya.py | |
| # ./ya.py download_url path/to/directory | |
| import os, sys, json |