Skip to content

Instantly share code, notes, and snippets.

@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
@Krzysiu
Krzysiu / extractAndGeotagFrames.bat
Created November 22, 2017 19:28
Extract frames from video every X seconds and geotag them using GPS data file. Requires exiftool and ffmpeg.
@echo off
rem Ksheesh Geotag Video Frames 0.0.1
rem
rem Extract frames from video every X seconds and geotag them using GPS data file.
rem Requires exiftool and ffmpeg.
rem Copyright (c) 2017 krzysiu.net
rem
rem Permission is hereby granted, free of charge, to any person obtaining a copy
rem of this software and associated documentation files (the "Software"), to deal
@Krzysiu
Krzysiu / bsod_tombstone.html
Last active October 26, 2017 16:47
Tombstone resembling Blue Screen of Death (Win95) in HTML. For the future use, when tombstones will have screen with browsers, YouTube, commercials etc. Mobile version for urns with small displays included.
<html>
<head>
<title>Blue Screen of DEATH tombstone</title>
<!--
BLUE SCREEN OF DEATH 95 TOMBSTONE v1
© krzysiu.net (Krzysztof Blachnicki), 2017
This piece of code is released on following licenses:
* CC BY 4.0 International (https://creativecommons.org/licenses/by/4.0/deed.en)
* BSD 3 with attribution (https://spdx.org/licenses/BSD-3-Clause-Attribution.html)
@Krzysiu
Krzysiu / ahk2exeFrontend.bat
Last active July 18, 2017 21:20
Kind of frontend to AutoHotKey compiler
@echo off
rem Copyright by krzysiu.net, 2017
rem Licensed as MIT (full text: https://opensource.org/licenses/MIT)
setlocal
set binImg1=Unicode 64-bit
set binImg2=Unicode 32-bit
set binImg3=ANSI 32-bit
REM SET YOUR PATH TO COMPILER HERE
@Krzysiu
Krzysiu / pro_dump.php
Created October 10, 2016 16:03
Variation of var_dump which takes modifier as first parameter - PD::RETURN for returning value (default is echo), PD::PRE to contain dump in <pre>, PD::DIE to die() after run, PD::ESCAPE to escape HTML characters
class PD {
const RETURN = 1;
const PRE = 2;
const DIE = 4;
const ESCAPE = 8;
}
function pro_dump() {
if (func_num_args() < 2) return false;
$vars = func_get_args($vars);
@Krzysiu
Krzysiu / restart.bat
Created September 21, 2016 22:42
Restart Windows console (could be used as command)
start cmd & exit