Skip to content

Instantly share code, notes, and snippets.

View JrooTJunior's full-sized avatar
🏠
Working from home

Alex Root Junior JrooTJunior

🏠
Working from home
View GitHub Profile
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):
import traceback
from os import PathLike
from pathlib import Path
from typing import List, Union
import win32api
import win32print
class WindowsDriver:
{
"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": {
{
"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": {
@JrooTJunior
JrooTJunior / whitelist.py
Created February 12, 2020 10:59
Whitelist Middleware
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]):
@JrooTJunior
JrooTJunior / bot.py
Created April 19, 2019 06:50
Extended IsAdminFilter
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)
@JrooTJunior
JrooTJunior / stickers_bot.py
Last active October 27, 2018 08:43
Stickers download bot. License: MIT
"""
Requirements:
aiogram>=2.0.rc1
Pillow
emoji
"""
import asyncio
import io
import logging
@JrooTJunior
JrooTJunior / check_hash.py
Last active February 14, 2024 07:53 — forked from xen/check_hash.py
telegram site auth
# 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'))
@JrooTJunior
JrooTJunior / danted.conf
Last active April 18, 2018 01:14 — forked from 4ndv/danted.conf
Telegram danted.conf
# /etc/danted.conf
logoutput: syslog /var/log/sockd.log
internal: eth0 port = 1080
external: eth0
sockmethod: pam.username
user.privileged: root
Foo_Bar
Bar_Baz
Lorem_Ipsum