Updated to Pyrogram v1.
If you know what you're doing, feel free to use these as a guide.
For any questions, head to @PyrogramLounge.
| cat > /etc/systemd/system/gitlab-runner.service.d/override.conf <<EOF | |
| [Service] | |
| User=gitlab-runner | |
| Group=gitlab-runner | |
| ExecStartPre=+ln -sf /var/run/podman/podman.sock /var/run/docker.sock | |
| ExecStart= | |
| ExecStart=strace -e getuid,getgid -e inject=getuid:retval=0 -e inject=getgid:retval=0 -- /usr/bin/gitlab-runner run --working-directory /home/gitlab-runner --config /etc/gitlab-runner/config.toml --service gitlab-runner --user gitlab-runner | |
| EOF |
| # Bazarr downloads subtitles | |
| version: "3.4" | |
| services: | |
| bazarr: | |
| image: linuxserver/bazarr:1.0.5-development | |
| container_name: bazarr | |
| restart: unless-stopped | |
| environment: | |
| - TZ=Europe/London |
Updated to Pyrogram v1.
If you know what you're doing, feel free to use these as a guide.
For any questions, head to @PyrogramLounge.
| # implementation of Telegram site authorization checking algorithm | |
| # for more information https://core.telegram.org/widgets/login#checking-authorization | |
| import collections | |
| import hmac | |
| import hashlib | |
| def check_string(data, token): | |
| secret = hashlib.sha256() | |
| secret.update(token.encode('utf-8')) |
The following settings are provided as an example how longhorn should be configured in a production cluster, especially if it is deployed on Hetzner Cloud infrastructure.
Hetzner server nodes provide local storage and allow up to five attached volumes (with a size of up to 10TiB each) Local storage is provided by NVMe storage and therefore is much faster than the attached volumes, but limited in size (max 300GiB usable).
Also you want to control the nodes that are used for storage. So it is suggested to set the option Create default disk only on labeled node to true
| FROM python:3.6-slim | |
| RUN apt-get update && apt-get install --no-install-recommends -y \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| curl | |
| RUN extractor='extractor_2.h5' \ | |
| && extractor_sha256='cdda15f239331b9535d80a94b4d75889ccb3b61d7b030c921bd2bfd7862b0adc' \ | |
| && extractor_path='/usr/local/lib/python3.6/site-packages/fawkes/model' \ |