Skip to content

Instantly share code, notes, and snippets.

@koloved
koloved / sage-attention-install-helper-comfyui-portable_v1.0.bat
Created November 12, 2025 23:06
Triton and SageAttention Installation Helper
@echo off
chcp 65001 >nul
title Triton and SageAttention Installation Helper
echo Welcome to the Triton and SageAttention installation helper utility
echo.
echo PLEASE READ CAREFULLY:
echo.
echo 1. This utility only works with the portable version of ComfyUI.
echo 2. This utility must be placed inside the ComfyUI source folder, at the same level as the folders: ComfyUI, python_embeded, and update.
@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 June 3, 2025 11:17
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
@koloved
koloved / gist:51eb1fd55381b7c578c26db9831827a9
Created November 22, 2023 10:15
wayland auto login issue
kernel: ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
kernel: pnp 00:03: disabling [mem 0xc0000000-0xcfffffff] because it overlaps 0000:00:02.0 BAR 9 [mem 0x00000000-0xdfffffff 64bit pref]
systemd[1]: /usr/lib/systemd/system/plymouth-start.service:15: Unit uses KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update the service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed.
kernel: device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log.
kernel: nvme nvme0: missing or invalid SUBNQN field.
55-scsi-sg3_id.rules[485]: WARNING: SCSI device nvme0n1 has no device ID, consider changing .SCSI_ID_SERIAL_SRC in 00-scsi-sg3_config.rules
kernel: usb: port power management may be unreliable
systemd-vconsole-setup[552]: KD_FONT_OP_GET failed while trying to get the font metadata: Invalid argument
systemd-
@koloved
koloved / my_PC
Last active February 10, 2023 13:22
Computer Information:
Manufacturer: ASRock
Model: B660M-ITX/ac
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: 12th Gen Intel(R) Core(TM) i5-12400
CPU Family: 0x6