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
Foo_Bar | |
Bar_Baz | |
Lorem_Ipsum |
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
# /etc/danted.conf | |
logoutput: syslog /var/log/sockd.log | |
internal: eth0 port = 1080 | |
external: eth0 | |
sockmethod: pam.username | |
user.privileged: root |
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
# 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')) |
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
""" | |
Requirements: | |
aiogram>=2.0.rc1 | |
Pillow | |
emoji | |
""" | |
import asyncio | |
import io | |
import logging |
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 | |
import os | |
from aiogram import Bot, Dispatcher, types | |
from aiogram.contrib.middlewares.logging import LoggingMiddleware | |
from aiogram.dispatcher.filters import BoundFilter | |
from aiogram.utils import executor | |
logging.basicConfig(level=logging.INFO) |
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
from typing import Any, Dict, List, Set | |
from aiogram import types | |
from aiogram.dispatcher.handler import CancelHandler | |
from aiogram.dispatcher.middlewares import BaseMiddleware | |
from loguru import logger | |
class WhitelistMiddleware(BaseMiddleware): | |
def __init__(self, users: Set[int]): |
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
{ | |
"openapi": "3.0.2", | |
"info": { | |
"title": "SRSO API", | |
"description": "Core API of Software Registrar of Settlement Operations", | |
"version": "0.1.0" | |
}, | |
"paths": { | |
"/api/v1/cashier/signin": { | |
"post": { |
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
{ | |
"openapi": "3.0.2", | |
"info": { | |
"title": "SRSO API", | |
"description": "Core API of Software Registrar of Settlement Operations", | |
"version": "0.1.0" | |
}, | |
"paths": { | |
"/api/v1/cashier/signin": { | |
"post": { |
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 traceback | |
from os import PathLike | |
from pathlib import Path | |
from typing import List, Union | |
import win32api | |
import win32print | |
class WindowsDriver: |
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
api_1 | [2020-08-18 10:58:45 +0300] [1] [CRITICAL] WORKER TIMEOUT (pid:152) | |
api_1 | Fatal Python error: Aborted | |
api_1 | | |
api_1 | Thread 0x00007faaf249b700 (most recent call first): | |
api_1 | File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 78 in _worker | |
api_1 | File "/usr/local/lib/python3.8/threading.py", line 870 in run | |
api_1 | File "/usr/local/lib/python3.8/threading.py", line 932 in _bootstrap_inner | |
api_1 | File "/usr/local/lib/python3.8/threading.py", line 890 in _bootstrap | |
api_1 | | |
api_1 | Thread 0x00007faaf2c9c700 (most recent call first): |