Skip to content

Instantly share code, notes, and snippets.

View maaduukaar's full-sized avatar
💎
Excited by The Open Network

Max Shvedov maaduukaar

💎
Excited by The Open Network
View GitHub Profile
@maaduukaar
maaduukaar / get_rate.txt
Last active July 10, 2025 08:23
Get Toncoin rate to Google Spreadsheets
EN:
=VALUE(SUBSTITUTE(IMPORTXML("https://coinmarketcap.com/currencies/toncoin/"; "//span[@data-test='text-cdp-price-display']"); "$"; ""))
RU:
=ЗНАЧЕН(ПОДСТАВИТЬ(ПОДСТАВИТЬ(IMPORTXML("https://coinmarketcap.com/currencies/toncoin/"; "//span[@data-test='text-cdp-price-display']"); "$"; ""); "."; ","))
@maaduukaar
maaduukaar / window_info.py
Last active July 1, 2025 09:47
Get window titles, positions, and sizes on Windows using Python.
import pygetwindow as gw
# Get a list of all windows with non-empty titles
windows = [w for w in gw.getAllWindows() if w.title.strip() != '']
# Check if there are any available windows
if not windows:
print("No windows with non-empty titles were found.")
exit()
import os
import re
def replace_in_html_files(pattern, replacement, folder_path):
# Компилируем регулярное выражение
regex = re.compile(pattern, re.DOTALL | re.IGNORECASE)
# Счетчики для статистики
total_files = 0
processed_files = 0
import os
def replace_in_html_files(pattern, replacement, folder_path):
# Счетчики для статистики
total_files = 0
processed_files = 0
files_with_matches = 0
files_without_matches = 0
total_matches = 0
@maaduukaar
maaduukaar / check_urls_status.py
Last active June 27, 2025 12:04
Python script to check URLs for 404 errors with CSV export
import requests
import csv
import time
from collections import Counter
# Settings
input_file = 'urls.txt'
output_file = 'result.csv'
timeout = 10 # Request timeout in seconds
delay = 0.5 # Delay between requests to avoid overloading servers
@maaduukaar
maaduukaar / index.html
Last active March 29, 2025 11:18
Тестовое для Leadwork
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Септик Танк - купить в Москве у официального дилера</title>
<meta name="description" content="Купить септик Танк в Москве с установкой под ключ. Официальный дилер. Надежная, энергонезависимая и долговечная автономная канализация по выгодной цене.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://example.com/septik-tank">
</head>
@maaduukaar
maaduukaar / OnlineEducation.txt
Created February 24, 2023 10:38
Список онлайн систем образования
Skillbox
Нетология
Шаг
Учи.ру
Фоксфорд
Яндекс практикум
Синергия
Contented
Coursera
Easy code
@maaduukaar
maaduukaar / The dash.amc
Last active February 24, 2023 10:37
Em dash (long dash, long tiret, длинное тире) symbol macros for A4TECH mouse
<Root>
<DefaultMacro>
<Major></Major>
<Description>Write the long dash
</Description>
<Comment>DASH
</Comment>
<GUIOption>
<RepeatType>0</RepeatType>
</GUIOption>
@maaduukaar
maaduukaar / A4TECH mouse macros key codes
Last active February 24, 2023 10:23
Key codes for mouse A4TECH for macros creating
A 4
B 5
C 6
D 7
E 8
F 9
G 10
H 11
I 12
J 13
@maaduukaar
maaduukaar / shift.sh
Last active December 22, 2020 18:10
Shortcuts for shift_manager.bash
#!/bin/bash
# CONFIG
SHIFT_DIRECTORY=~/shift-lisk
# EXPORT
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8