Skip to content

Instantly share code, notes, and snippets.

@koloved
koloved / RedditCommentsCopier.js
Created May 31, 2026 11:00
Копирует комментарии Reddit в ультра-компактном формате для экономии токенов
// ==UserScript==
// @name Reddit Comments Copier (Compact)
// @namespace http://tampermonkey.net/
// @version 1.3
// @description Копирует комментарии Reddit в ультра-компактном формате для экономии токенов
// @match https://*.reddit.com/r/*/comments/*
// @grant GM_setClipboard
// @run-at document-idle
// ==/UserScript==
@koloved
koloved / kill_app.ps1
Last active March 23, 2026 21:24
auto close AJAZZ AK820 app (disable background)
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
$scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
Set-Location $scriptPath
$exe = Get-ChildItem -Path $scriptPath -Filter "*.exe" | Where-Object { $_.Name -notmatch "AudioRecord" } | Select-Object -First 1
if (-not $exe) {
Write-Host "Main EXE not found!" -ForegroundColor Red
exit
}
@koloved
koloved / HuntStart.vbs
Last active March 22, 2026 11:40
VBS script to auto-start Ultimate Crosshair + Game Bar widget + Steam Game and kill all background processes (GameBar.exe, etc.) after closing the game to save RAM.
' Скачайте https://apps.microsoft.com/detail/9n2bjz33395t
' ======================================================================================
' NAME: HuntShowdown_AutoStart_with_Crosshair.vbs
' DESCRIPTION: Автоматизация запуска прицела (Ultimate Crosshair) и игры Hunt: Showdown.
'
' ПОРЯДОК РАБОТЫ:
' 1. Запуск приложения прицела и ожидание его процесса.
' 2. Активация виджета Xbox Game Bar (через Ctrl+F12).
' 3. Запуск игры напрямую через исполнительный файл.
' 4. Очистка ОЗУ от Game Bar и прицела после выхода из игры (~150MB ОЗУ).
@koloved
koloved / txt_tags_files_missed_finder.bat
Created June 3, 2025 11:21
bat script for finding JPG and JXL files without corresponding TXT files
@echo off
setlocal enabledelayedexpansion
rem Set the log file name with timestamp
set "logfile=missing_txt_files_%date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.log"
set "logfile=!logfile: =0!"
rem Clear the log file if it exists
if exist "%logfile%" del "%logfile%"
@koloved
koloved / txt_to_XMP_converter.py
Last active April 28, 2026 04:32
txt tag files to XMP files converter
# This Python script is a tag conversion utility that transforms text-based tag files into XMP (Extensible Metadata Platform)
# sidecar files for image management, specifically formatted for digiKam photo management software.
# txt tag sample - 1girl looking_at_viewer split yoga_pose
import os
import glob
# Function to convert tags string to XMP format
def tags_to_xmp(tags_string):
# Normalize tags string by replacing commas with spaces and splitting
@koloved
koloved / gist:8a8dda69b9560b329c3ddcf81295d08d
Created March 31, 2025 12:14
Block RAWMHUB updates bat script
@echo off
setlocal enabledelayedexpansion
:: Check for command-line arguments
if not "%~1"=="" goto PROCESS_ARG
:: Initial menu without admin rights
:MENU
cls
echo Select action:
@koloved
koloved / Yandex Video - Smart YouTube Filter-0.1.user.js
Created January 22, 2025 15:07
Автоматически исключает YouTube с на страницах яндекс видео
// ==UserScript==
// @name Yandex Video - Smart YouTube Filter
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Автоматически исключает YouTube с на страницах яндекс видео
// @author NN
// @match https://yandex.ru/video/*
// @match https://ya.ru/video/*
// @match https://yandex.com/video/*
// @grant none
@koloved
koloved / Install_avif_ShareX.ps1
Last active October 10, 2025 21:06
ShareX AV1 Avif Auto-Config/Installer Script
<#
.SYNOPSIS
ShareX AV1 Avif Auto-Config/Installer Script
.DESCRIPTION
This script automates the configuration of ShareX with custom FFmpeg video/image conversion tasks.
It will:
1. Install/update FFmpeg
2. Set After capture tasks -> Perform actions option ON
3. Add AVIF conversion Actions
@koloved
koloved / reboot_to_bazzite.bat
Created November 6, 2024 19:43
Automatically reboot to Bazzite .bat script
@echo off
setlocal enabledelayedexpansion
rem Run bcdedit and save the output to a temporary file
echo Running bcdedit to enumerate firmware...
bcdedit /enum firmware > temp.txt
echo Output saved to temp.txt.
rem Initialize variables
set "target_description=bazzite"
@koloved
koloved / gist:8b1dd719bc2fa5281ed4b3acdc2375c3
Created December 4, 2023 14:47
Hunt showdown Vkbasalt.conf
#toggleKey = Pause
depthCapture = off
reshadeTexturePath = "/home/love/.config/vkBasalt/reshade/Textures/"
reshadeIncludePath = "/home/love/.config/vkBasalt/reshade/Shaders/"
effects=tonemap:dls
dlsSharpness = 0.5
dlsDenoise = 0.6
tonemap=/home/love/.config/vkBasalt/reshade/Shaders/Tonemap.fx
Gamma = 0.690