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
| services: | |
| qbittorrent: | |
| image: lscr.io/linuxserver/qbittorrent:latest | |
| container_name: qbittorrent | |
| environment: | |
| - PUID=1000 | |
| - PGID=1000 | |
| - TZ=Europe/Berlin | |
| - WEBUI_PORT=8080 | |
| volumes: |
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
| version: "3" | |
| services: | |
| vpn: | |
| image: qmcgaw/gluetun | |
| container_name: vpn | |
| cap_add: | |
| - NET_ADMIN | |
| ports: | |
| - 8888:8888/tcp # HTTP proxy | |
| - 8388:8388/tcp # Shadowsocks |
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
| # Docker compose to set up containers for all services you need: | |
| # VPN | |
| # Sonarr, Radarr, Lidarr, Qbittorrent | |
| # Non-VPN | |
| # Plex, get_iplayer | |
| # Before running docker-compose, you should pre-create all of the following folders. | |
| # Folders for Docker State: | |
| # /volume1/dockerdata. - root where this docker-compose.yml should live | |
| # /volume1/dockerdata/plex - Plex config and DB | |
| # /volume1/dockerdata/sonarr - Sonarr config and DB |
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 torch | |
| import logging | |
| from pytorch_transformers import BertModel, BertTokenizer | |
| from pytorch_transformers import * | |
| from typing import List | |
| CLS_TOKEN = "[CLS]" | |
| SEP_TOKEN = "[SEP]" | |
| logger = logging.getLogger(__name__) |
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
| // Usage: | |
| // <link rel="shortcut icon" href="favicon.png" data-count"5"> | |
| (() => { | |
| const faviconSize = 32; | |
| const favicon = document.querySelector('[data-count]') | |
| // No notifications | |
| if (!favicon || !favicon.dataset.count) { | |
| return; |
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
| { | |
| "AF": "Afghanistan", | |
| "AX": "Aland Islands", | |
| "AL": "Albania", | |
| "DZ": "Algeria", | |
| "AS": "American Samoa", | |
| "AD": "Andorra", | |
| "AO": "Angola", | |
| "AI": "Anguilla", | |
| "AQ": "Antarctica", |
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
| CREATE TEXT SEARCH CONFIGURATION fr ( COPY = french ); | |
| ALTER TEXT SEARCH CONFIGURATION fr ALTER MAPPING | |
| FOR hword, hword_part, word WITH unaccent, french_stem; | |
| CREATE TEXT SEARCH CONFIGURATION en ( COPY = english ); | |
| ALTER TEXT SEARCH CONFIGURATION en ALTER MAPPING | |
| FOR hword, hword_part, word WITH unaccent, english_stem; | |
| CREATE TEXT SEARCH CONFIGURATION de ( COPY = german ); | |
| ALTER TEXT SEARCH CONFIGURATION de ALTER MAPPING |