See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
import botocore.session | |
from botocore import monitoring | |
from opentelemetry.trace import get_tracer | |
from opentelemetry import trace | |
from opentelemetry.trace import SpanKind | |
from opentelemetry.semconv.trace import SpanAttributes | |
from opentelemetry.trace.status import Status, StatusCode | |
from opentelemetry.instrumentation.utils import ( | |
http_status_to_status_code, | |
) |
from plugin import TraceParentLogger | |
def create_app(): | |
config = get_api_settings() | |
app = FastAPI... | |
.... | |
app.add_middleware(RawContextMiddleware, plugins=(TraceParentLogger(),) |
FROM python:3.9.5-slim-buster | |
ENV PYTHONUNBUFFERED 1 | |
RUN adduser \ | |
--disabled-password \ | |
--gecos "" \ | |
--home /app \ | |
app |
""" | |
Usage: | |
Make sure that redis is running on localhost (or adjust the url) | |
Install uvicorn or some other asgi server https://asgi.readthedocs.io/en/latest/implementations.html | |
pip install -u uvicorn | |
Install dependencies |
QBITTORRENT_PATH=<PATH> | |
QBITTORRENT_WEBUI_PORT=<PORT> | |
DOWNLOAD_PATH=<PATH> | |
MEDIA_PATH=<PATH> | |
JACKETT_PATH=<PATH> | |
SONARR_PATH=<PATH> | |
RADARR_PATH=<PATH> | |
DOMAIN=<YOUR DOMAIN> | |
TZ=<Timezone e.g. Europe/Budapest> | |
USERDIR=<HOME DIR PATH> |
import logging.config | |
from django.utils.log import DEFAULT_LOGGING | |
# ======= | |
# LOGGING | |
# ======= | |
LOGGING_CONFIG = None | |
LOGLEVEL = os.getenv("LOGLEVEL", "info").upper() |
version: '2' | |
services: | |
pihole: | |
image: pihole/pihole:latest | |
container_name: pihole | |
volumes: | |
- /etc/localtime:/etc/localtime:ro | |
- /dev/rtc:/dev/rtc:ro | |
dns: |
<!-- Prevents TouchWiz from surrounding your app icon in a frame --> | |
<!-- Add to your manifest inside the application tag --> | |
<meta-data | |
android:name="com.samsung.android.icon_container.has_icon_container" | |
android:value="true"/> |
# ------------------------------------------------------------------------------ | |
# tlp - Parameters for power saving | |
# See full explanation: http://linrunner.de/en/tlp/docs/tlp-configuration.html | |
# dir: /etc/default/tlp | |
# Hint: some features are disabled by default, remove the leading # to enable | |
# them. | |
# Set to 0 to disable, 1 to enable TLP. |