Skip to content

Instantly share code, notes, and snippets.

View Krzysiu's full-sized avatar

Krzysiu Krzysiu

View GitHub Profile
@Krzysiu
Krzysiu / chainner_batch.bat
Last active March 21, 2026 16:40
Blazing fast chainner configurable batch processing
:: Runs chaiNNer file with CLI for multiple files.
::
:: This script or just your own command, it's worth - for my PC it makes things about 30 seconds quicker
:: due to faster work and fast loading without GUI.
:: Could be configured to change depth to 8 bit (useful for RawTherapee, where files opened externally
:: are always 16 bit). For that, you need ImageMagick in your system path.
:: Also supports Append Text node, i.e. if you use suffix for your file name! Before proceeding, be sure
:: to check configuration section!
@Krzysiu
Krzysiu / chainnerBenchmark.ps1
Created March 11, 2026 00:47
ChaiNNer benchmark - precise calculation of processing time
<#
.SYNOPSIS
chaiNNer benchmark script - precise performance measurement tool or how to overthink a simple script. 🥜🔨
Be sure to check config variables below!
.DESCRIPTION
This script correlates chaiNNer execution logs with file system metadata to provide
accurate image processing duration. it extracts engine parameters (pytorch, ncnn, onnx)
and detailed file info (mpix).
@Krzysiu
Krzysiu / libreOfficeCopyMacro.md.md
Created February 17, 2026 02:32
A LibreOffice Calc macro to copy cell ranges as clean, pre-formatted plain text by bypassing the bloated system clipboard via a hidden Writer proxy.

LibreOffice Calc "copy as text" macro

The code

Sub Copy_With_Custom_Separator
    ' --- CONFIGURATION (Set your characters here) ---
    Dim sepCol As String : sepCol = " | "    ' Column separator (tab is Chr(9))
    Dim sepRow As String : sepRow = Chr(10)  ' Row separator (Chr(10) is \n )
    ' ------------------------------------------------

Adding "Run in Powershell ISE" command in Notepad++ context menu

Requirements

  1. Powershell ISE (probably you have it already in your Windows, if you want to use it. If not, search for instructions)

  2. Notepad++ (duh!)

  3. nppExec plugin (always worth having! You can install it via N++'s plugin manager or download it from GitHub repository))

@Krzysiu
Krzysiu / PNGGauntlet.md
Created February 13, 2026 21:11
Modernizing PNGGauntlet

Modernizing PNGGauntlet 🚀

PNGGauntlet is a nice (yet just freeware) GUI for three powerful tools that compress PNGs to the max.

  • Sadly, it is unmaintained.
  • Sadly again, some of the bundled tools have known, serious security holes.
  • Happily, probably due to licensing conflicts (GPL tools vs. freeware GUI), the app relies on external binary dependencies instead of compiled-in libraries.
  • Happily, modern versions of these core apps are backward compatible!
  • Total happiness balance: 0
@Krzysiu
Krzysiu / checkGame.ahk
Created February 5, 2026 16:40
GeForce NOW queue alert - sound notification when ready
; GeForce NOW Queue Notifier (AHK v2)
;
; Since queues can be long, this script alerts you when your game starts.
;
; THE "HACK":
; IT DOESN'T INJECT ITSELF, DOESN'T DO OCR, IT'S 100% LEGAL
; I noticed that GeForceNOW.exe (the main app) launches a child 'tracert'
; process exactly when the queue finishes and the game begins to load.
; This script monitors for that specific event.
;
@Krzysiu
Krzysiu / color-picker.ahk
Created February 4, 2026 18:56
AutoHotKey - pick color directly from your screen
; Preview: https://imgur.com/nL7VnYd
; This is a color picker - click to pick from anywhere on the screen, not just color pallete
; GUI serves just as an example of the function (PickColor to pick, Pick to start pick mode)
; Optional ideas:
; Screen freeze - take a screenshot and display it as borderless window all over the screen
; Live preview - set timer to 50 ms and use PickColor patrially
#NoEnv
SendMode Input
@Krzysiu
Krzysiu / exiftoolCommands.sh
Last active January 28, 2026 00:59
Important exiftool commands - both basic and advanced
# ==============
# TECHNICAL NOTE
# ==============
# When there's a part which you should change to your enviroment (like directory), it's marked as eg. {$PATH}.
# In conditions or print output format, where tags are marked with $ on the beggining, like $DateTimeOriginal, I'm just
# leaving example tag name, so it won't confuse y'all with "${$FOO}"
#
# For Windows give a try alternative ExifTool build: https://oliverbetz.de/pages/Artikel/ExifTool-for-Windows
@Krzysiu
Krzysiu / setTrayFromBase64.ahk
Created January 25, 2026 19:41
AutoHotKey v1 - sets tray icon from base64 string
/*
License: MIT, (C) 2026 Krzysztof Blachnicki
Function for setting tray icon from base64 string for AUtoHotKey v1.
Possible uses:
* distribution of single-file script without separate .ico file
* automation of creating icons via external tools (like ImageMagick)
Syntax:
@Krzysiu
Krzysiu / google-maps-to-osm.user.js
Last active January 24, 2026 03:06
Userscript - Jump from Google Maps to OpenStreetMaps with a click on the added button
// ==UserScript==
// @name Google Maps → OpenStreetMap button
// @author Krzysztof "Krzysiu" Blachnicki
// @namespace https://github.com/Krzysiu
// @license MIT
// @homepage https://greasyfork.org/scripts/563845-google-maps-openstreetmap-button
// @version 0.3
// @description Adds a button in Google maps which opens the same map in OpenStreetMaps
// @match https://www.google.com/maps/*
// @icon data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj48cGF0aCBmaWxsPSIjNmZhYmUzIiBkPSJNMSAwczQzIDczIDQzIDExNFMwIDE4NyAxIDIyOGMwIDQxIDQzIDczIDQzIDExNCAwIDQwLTQzIDExNC00MyAxMTRzNzMgNDQgMTEzIDQ0YzQxIDAgNzQtNDMgMTE0LTQzIDQxIDAgNzMgNDMgMTE0IDQzczExNC00MyAxMTQtNDMgNDQtNzUgNDQtMTE1Yy0xLTQxLTQ0LTczLTQ0LTExNCAwLTQwIDQ0LTczIDQ0LTExNFM0NTYgMCA0NTYgMHMtNzMgNDQtMTE0IDQ0Yy00MCAwLTczLTQ0LTExNC00NC00MCAwLTczIDQzLTExNCA0M0M3NCA0MyAxIDAgMSAwem0xNzEgMTIxYzI0IDAgNDUgMTQgNTUgMzRsLTI3IDE0Yy01LTExLTE1LTE3LTI4L