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 yandex.cloud.vpc.v1.address_service_pb2_grpc import AddressServiceStub | |
| from yandex.cloud.vpc.v1.address_service_pb2 import ( | |
| CreateAddressRequest, | |
| DeleteAddressRequest, | |
| ExternalIpv4AddressSpec, | |
| CreateAddressMetadata | |
| ) | |
| from yandex.cloud.vpc.v1.address_pb2 import Address | |
| import yandexcloud | |
| import traceback |
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
| @echo off | |
| DEL /Q "R:\Temp\Microsoft\Windows\Themes\TranscodedWallpaper" | |
| reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v JPEGImportQuality /t REG_DWORD /d 100 /f | |
| :load | |
| reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "R:\TEMP\Microsoft\Windows\Themes\1.jpg" /f | |
| cls | |
| curl -o R:\Temp\Microsoft\Windows\Themes\1.jpg https://all-sky.kourovka.ru/cloud_last.jpg | |
| start "" /b RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters ,1 ,True | |
| cls | |
| timeout 30 /nobreak >nul |
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 asyncio | |
| import glob | |
| from PIL import Image | |
| from urllib.parse import urlparse | |
| from pathlib import Path | |
| from playwright.async_api import async_playwright | |
| TAMPERMONKEY_SCRIPT = """ | |
| // ==UserScript== | |
| // @name GitHub Commits Cleaner |
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
| def extended_gcd(a, b): | |
| """ | |
| Расширенный алгоритм Евклида. | |
| Возвращает кортеж (g, x, y), где: | |
| g = НОД(a, b) | |
| x, y такие, что a*x + b*y = g | |
| """ | |
| if b == 0: | |
| return (a, 1, 0) | |
| else: |
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 Calculate Average Score URFU BRS | |
| // @name:zh-CN 计算平均得分URFU BRS | |
| // @namespace https://gist.github.com/ve3xone/93ee59086618b9e3925bc4376f0feec0 | |
| // @version 2026-01-22-v1.09 | |
| // @description Данный скрипт позволяет считать средний балл в БРС и также менять баллы чтоб посчитать приблизительно какой может быть ваш средний балл | |
| // @description:zh-CN 该脚本允许您在 BRS 系统中计算平均分,并支持临时修改分数以预测您的最终平均成绩。 | |
| // @author Vladislav Startsev (aka ve3xone) | |
| // @match https://istudent.urfu.ru/s/servis-informirovaniya-studenta-o-ballah-brs* | |
| // @match https://istudent.urfu.ru/s/http-urfu-ru-ru-students-study-brs* |
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
| // Проверяем что гавна не нужного нет чтоб не отправить fakeotvet | |
| const choicesDiv = document.querySelector('div.widget-test-player__choices'); | |
| const fullAnswerDiv = document.querySelector('div.FULLANSWER[data-testid="MFE_DES.WIDGETS.PLAYER"]'); | |
| const inputField = document.querySelector('input[data-testid="Editor"]'); | |
| // Получаем все элементы span с классом "gap bg-white" | |
| const spans = document.querySelectorAll('span.gap.bg-white'); | |
| // Проходим по каждому элементу и вставляем содержимое data-value | |
| spans.forEach(span => { |