Skip to content

Instantly share code, notes, and snippets.

View leporel's full-sized avatar
🌧️
frustrating

Viacheslav leporel

🌧️
frustrating
View GitHub Profile
@leporel
leporel / robots.txt
Created October 4, 2021 01:39
robots disallow
User-agent: *
Disallow: /
@leporel
leporel / tag2utf-0.16.1.py
Created November 16, 2022 12:21
Python3 mp3 cyrillic tags to utf8
#!/usr/bin/python
import os.path
import re
import os
import sys
import copy
helptext = """
Tool for encoding tags of mp3 files in the russian 1-byte charsets to unicode
@leporel
leporel / windows-setup.ps1
Last active October 9, 2023 09:30
windows-setup
##
# Windows 10/11
#
# Для начала, выполните команду `"Set-ExecutionPolicy RemoteSigned`", после вы сможите запустить скрипт.
# После всех действий, можете вернуть как было `"Restricted`" вместо RemoteSigned
#
# Для режима применения настроек требуется выполнять этот скрипт с правами администратора.
##
#Requires -RunAsAdministrator
from inspect import ismethod, isfunction
from math import sqrt
from platform import system
from os import makedirs, path
import json
import pywinctl as pwc
import pymonctl as pmc
import obspython as obs
import time
from screeninfo import get_monitors
@leporel
leporel / Transcode_HDR_subfolders_auto.sh
Last active March 6, 2024 20:53
Work with HDR10 and HDR10+
#!/bin/bash
Help()
{
# Display Help
echo "Encodes to the specified CRF while preserving HDR metadata, can downscale to 1080."
echo "Requires ffprobe, mkvpropedit, mediainfo, hdr10plus_tool."
echo
echo "Syntax: $0 [-q <15-40>] [-p <h265 preset>] [-s]"
echo "$0 -q 21 -p medium -s"