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 __future__ import annotations | |
from datetime import datetime | |
from typing import Any, Dict, List, Optional, AsyncGenerator | |
from sqlalchemy.dialects.postgresql import TIMESTAMP | |
from fastapi import Depends, FastAPI, Request | |
from fastapi.exceptions import RequestValidationError | |
from fastapi.responses import JSONResponse | |
from pydantic import BaseModel, Field, ValidationError, validator | |
from pydantic_settings import BaseSettings | |
from sqlalchemy import JSON, Column, DateTime, Integer, String, func |
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
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0 | |
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 | |
Accept-Language: en-US,en;q=0.5 | |
Accept-Encoding: gzip, deflate, br, zstd | |
Connection: keep-alive | |
Upgrade-Insecure-Requests: 1 | |
Sec-Fetch-Dest: document | |
Sec-Fetch-Mode: navigate | |
Sec-Fetch-Site: none | |
Sec-Fetch-User: ?1 |
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
{"local_time":"2024-10-26T07:05:44+00:00","ip_addr":"165.227.84.14","user_agent":"","http_cookie":"","http_authorization":"","referrer":"","content_type":"","request_method":"GET","request_url":"https://<host>/","request_body":"","response_status":301,"response_content_type":"text/html; charset=UTF-8"} | |
{"local_time":"2024-10-26T07:05:47+00:00","ip_addr":"165.227.84.14","user_agent":"Mozilla/5.0 (Linux; Android 6.0; HTC One M9 Build/MRA46709) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.5287.98 Mobile Safari/537.3","http_cookie":"","http_authorization":"","referrer":"","content_type":"","request_method":"GET","request_url":"https://<host>/","request_body":"","response_status":301,"response_content_type":"text/html; charset=UTF-8"} | |
{"local_time":"2024-10-26T07:05:48+00:00","ip_addr":"165.227.84.14","user_agent":"Go-http-client/1.1","http_cookie":"","http_authorization":"","referrer":"","content_type":"application/x-www-form-urlencoded","request_method":"POST","request_url":"https://<host>/php-cgi/php-cgi. |
В стародавние времена когда деревья были большими, трава зеленее, а мороженное стоило по 10 копеек, на Земле жили динозавры, и эти динозавры программировали в Vim.
У Vim есть особый ореол причастности к программистской элите. Умение писать и отлаживать код прямо в терминале — атрибут успешного программиста или девопса, дающий экспы к сеньористости, а так же повод лишний раз выпендриться перед вайтишниками. Я сам какое-то время пользовался Vim, но в определенный момент мне надоело возиться с его настройками.
Ну что ж, вспомним былое и настроим с нуля Vim.
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
#!/usr/bin/env python | |
import argparse | |
import subprocess | |
import sys | |
import time | |
import typing | |
import matplotlib.pyplot as plt | |
import psutil |