Skip to content

Instantly share code, notes, and snippets.

PreventRepeating() {
KeyWait, Alt
KeyWait, Ctrl
KeyWait, Shift
KeyWait, LWin
KeyWait, RWin
KeyWait, %A_ThisHotkey%
}
SetCapsLockState, AlwaysOff
@xahon
xahon / ezdeps.py
Last active April 6, 2023 21:15
Creates a conan helper to easily inject C/C++ dependencies in CMake-based project
# Usage: cd <project_root> && python ./ezdeps.py
# Add "include(ezdeps/CMakeLists.txt)" at the top of the root CMakeLists.txt
# Add needed dependencies in ezdeps/conanfile.py
import os
import urllib.request
from builtins import print
cwd = os.getcwd()
@xahon
xahon / ScenePreloader.cs
Created June 19, 2022 11:45
Preloads all GameObjects from _preloader scene and makes them DDOL automatically
using UnityEngine;
using UnityEngine.SceneManagement;
public class ScenePreloader : MonoBehaviour
{
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
static void OnBeforeSceneLoad()
{
LoadPreloaderScene();
}
#!/bin/bash
# https://github.com/jomo/imgur-screenshot
# https://imgur.com/tools
if [ "${1}" = "--debug" ]; then
echo "########################################"
echo "Enabling debug mode"
echo "Please remove credentials before pasting"
echo "########################################"
echo ""