| Навык / Технология | Уровень | Комментарий |
|---|---|---|
| Python (3.6–3.14) | Уверенный ★★ | asyncio, OOP, typing, pathlib |
| FastAPI | Уверенный ★★ | deps, middlewares, websockets |
| Flask | Эксперт ★★★ | + Jinja, Blueprints, CLI |
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 gtts import gTTS | |
| import os | |
| import subprocess | |
| from subprocess import check_output | |
| text = "Global warming is the long-term rise in the average temperature of the Earth’s climate system" | |
| language = "en" | |
| speech = gTTS(text=text, lang=language, slow=False) | |
| speech.save("text.mp3") | |
| os.system('nircmd mediaplay 10000 text.mp3') |
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 requests | |
| url_change = 'https://openexchangerates.org/api/latest.json?app_id=565db73ce703480cb8d8849e32f32035' | |
| r = requests.get(url_change) | |
| r = r.json() | |
| print(r["rates"]["CNY"]) |
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
| # war 1 | |
| import socket | |
| def scan_port(ip,port): | |
| sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| sock.settimeout(0.5) | |
| try: | |
| connect = sock.connect((ip,port)) | |
| print('Port :',port,' its open.') | |
| sock.close() |
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 os | |
| import time | |
| from threading import Thread | |
| from opentele.td import TDesktop | |
| from opentele.api import UseCurrentSession | |
| accounts = os.listdir(os.path.abspath('input/telegram_accounts')) | |
| async def telegram_attack(target, time_a, mes): |
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 winreg, os, sys | |
| import winsound | |
| # Путь к исполняемому файлу скрипта | |
| script_path = os.path.abspath(__file__) | |
| key_path = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run" | |
| key_name = "YourScriptName" | |
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
| async def update_progress(chat_id): | |
| message = await bot.send_message(chat_id, "Генерация в процессе...\n0% [ ]") | |
| try: | |
| for i in range(1, 11): | |
| progress = i * 10 | |
| # Отображаем серые блоки | |
| gray_blocks = '▒' * i + '░' * (10 - i) | |
| await bot.edit_message_text(f"Генерация в процессе...\n{progress}% [{gray_blocks}]", chat_id, message.message_id) | |
| await asyncio.sleep(0.5) # Даем время для отображения серых блоков |
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 pywifi | |
| from pywifi import const, Profile | |
| import time | |
| def get_wifi_connections(): | |
| wifi = pywifi.PyWiFi() | |
| interfaces = wifi.interfaces() | |
| print("Состояние подключения Wi-Fi адаптеров:") |
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 selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.support import expected_conditions as EC | |
| from selenium.webdriver.common.by import By | |
| def click_element(driver, by, value, timeout=10): | |
| """Ожидание элемента и нажатие на него.""" | |
| try: | |
| element = WebDriverWait(driver, timeout).until( | |
| EC.element_to_be_clickable((by, value)) | |
| ) |
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
| # ~/.conkyrc | |
| own_window yes | |
| own_window_type normal | |
| own_window_transparent no | |
| own_window_hints undecorated,sticky,skip_taskbar,skip_pager | |
| own_window_class Conky | |
| own_window_title Conky | |
| own_window_geometry 300x400+100+100 |
OlderNewer