Skip to content

Instantly share code, notes, and snippets.

#Requires AutoHotkey v2.0
#SuspendExempt
^`::
{
if (A_IsSuspended) {
SoundBeep 392, 200
} else {
SoundBeep 261, 200
}
@kudorgyozo
kudorgyozo / rotr.ahk
Created October 26, 2023 19:39
tomb raider autohotkey scripts
#Requires AutoHotkey v2.0
#SuspendExempt
^`::
{
if (A_IsSuspended) {
SoundBeep 392, 200
} else {
SoundBeep 261, 200
}
@kudorgyozo
kudorgyozo / ahk.ahk
Last active September 30, 2023 14:19
autohotkey repeat key, also beep on enable disable
#Requires AutoHotkey v2.0
#SuspendExempt
^`::
{
if (A_IsSuspended) {
SoundBeep 392, 300
} else {
SoundBeep 261, 300
}
@kudorgyozo
kudorgyozo / re1.ahk
Last active February 12, 2023 21:38
shake of zombies in RE1
#Requires AutoHotkey v2.0
~g::
{
slp := 6
del := 3
while GetKeyState("g")
{
Send "{w down}"
@kudorgyozo
kudorgyozo / foreach.ps1
Created January 6, 2023 23:09
powershell loop through files
$files = Get-ChildItem -Filter *.mkv
foreach ($file in $files) {
#Write-Output "ffg $file.Name"
$b2 = "b2-windows.exe"
$args = "upload-file gyozobucket {0} movies/columbo-hu/{0}" -f $file.Name
Write-Output "$b2 $args"
Start-Process -FilePath $b2 -ArgumentList $args -Wait -NoNewWindow
}
@kudorgyozo
kudorgyozo / instagram-downloader.js
Created December 18, 2020 20:40
very basic tampermonkey instagram downloader, shows urls in console, createUI also shows them in a popup
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.instagram.com/p/*
// @require http://code.jquery.com/jquery-3.5.1.min.js
// @grant none
// ==/UserScript==
@kudorgyozo
kudorgyozo / Hover.cs
Last active June 21, 2022 09:39
unity surface shader that draws a transparent circle around the mouse (use case: to show what is behind a wall in an isometric game)
void Start()
{
theRenderer = GetComponent<MeshRenderer>();
theRenderer.material.SetVector("_Resolution", new Vector4((float)Screen.width, (float)Screen.height, 0, 0));
}
void OnMouseEnter()
{
theRenderer.material = hoverMaterial;
theRenderer.material.SetVector("_Resolution", new Vector4((float)Screen.width, (float)Screen.height, 0, 0));