Skip to content

Instantly share code, notes, and snippets.

View leporel's full-sized avatar
🌧️
frustrating

Viacheslav leporel

🌧️
frustrating
View GitHub Profile
@leporel
leporel / logmon.md
Last active September 25, 2024 04:26
Mikrotik script notification

Mikrotik script for logs notifications/alert script via Telegram, ROS 7
Change "BotToken", "MyID"

:local BotToken "Token"
:local MyID "UserID"

:local findPosix do={
    :local string [:tostr $1];
    :local posix $2;
@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"
@leporel
leporel / windows-setup.ps1
Last active July 28, 2024 23:11
windows-setup
##
# Windows 10/11
#
# Для начала, выполните команду `"Set-ExecutionPolicy RemoteSigned`", после вы сможите запустить скрипт.
# После всех действий, можете вернуть как было `"Restricted`" вместо RemoteSigned
#
# Для режима применения настроек требуется выполнять этот скрипт с правами администратора.
##
#Requires -RunAsAdministrator
@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 / robots.txt
Created October 4, 2021 01:39
robots disallow
User-agent: *
Disallow: /