-
Загрузите образ
Liveи войдите в систему. -
Создайте два раздела в
cfdisk:- /dev/sdX1 - для efi 100M (Type:
EFI System) - /dev/sdX2 - для root весь диск (Type:
Linux filesystem)
- /dev/sdX1 - для efi 100M (Type:
Инструкция поднимает связку 3x-ui + Xray (VLESS/Reality) в podman-контейнерах, с Nginx как маскировкой под реальный TLS-сайт и с автоматическим обновлением сертификатов.
Панель 3x-ui остаётся доступной только через SSH-туннель (без публикации в интернет).
Везде, где указано
example.com, подставьте свой домен.
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 python3 | |
| import argparse | |
| import time | |
| import math | |
| import logging | |
| from dataclasses import dataclass | |
| from typing import Optional, Dict, Tuple, List | |
| from evdev import InputDevice, UInput, ecodes as E |
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
| // ==UserScript== | |
| // @name ChatGPT → Markdown saver | |
| // @namespace tgpt.chat.markdown.saver | |
| // @version 1.3 | |
| // @description Save current ChatGPT dialog (user + assistant) as a .md file via the Tampermonkey menu. | |
| // @match https://chatgpt.com/* | |
| // @match https://chat.openai.com/* | |
| // @match http*://*/* // lets you run this on mirrors/embeds too (menu-only, harmless) | |
| // @match file:///* // saved HTML files | |
| // @grant GM_registerMenuCommand |
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 -S uv run --script | |
| # /// script | |
| # dependencies = [ "pyrofork", "tgcrypto-pyrofork", "rich", "pysocks" ] | |
| # /// | |
| import argparse | |
| import asyncio | |
| import io | |
| import math | |
| import os |
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
| #!/bin/sh | |
| API_KEY="$api_key" | |
| API_SECRET="$api_secret" | |
| FQDN="$domain" | |
| ADDR="$__IP" | |
| TTL=3600 | |
| WAIT="${param_wait:-8}" | |
| DNS="${dns_server:-1.1.1.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
| #!/usr/bin/env -S uv run --script | |
| # /// script | |
| # dependencies = ["httpx", "pyftpdlib"] | |
| # /// | |
| import os | |
| import mimetypes | |
| import tempfile | |
| import logging | |
| logging.basicConfig( |
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 python3 | |
| import argparse | |
| import fnmatch | |
| from pathlib import Path | |
| from typing import List, Optional, Union | |
| try: | |
| from pathspec import PathSpec | |
| _HAS_PATHSPEC = True |
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 bash | |
| set -euo pipefail | |
| SLEEP_SEC=2 | |
| OUTPUT_APP="" | |
| INPUT_APP="" | |
| declare -A LINKS_DONE=() | |
| usage() { | |
| cat <<EOF |
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 -S uv run --script | |
| # /// script | |
| # dependencies = [ "pyrofork", "tgcrypto-pyrofork" ] | |
| # /// | |
| import sys | |
| from pathlib import Path | |
| from pyrogram.client import Client |
NewerOlder