Skip to content

Instantly share code, notes, and snippets.

@MahBoiDeveloper
MahBoiDeveloper / _rainbow_hud.cfg
Created August 1, 2026 22:34
CS2 Rainbow HUD
// colors = while (true) {
// i = (i mod 13) + 1;
// cl_hud_color i;
// cl_crosshaircolor i"
// }
alias changeColor "incrementvar cl_hud_color 0 13 1; incrementvar cl_crosshaircolor 0 13 1";
alias colorsToggle "colorsOn";
alias +cW "+forward; changeColor;";
@MahBoiDeveloper
MahBoiDeveloper / autoexec.cfg
Last active August 25, 2026 16:43
My CS2 default config to set up hotkeys
// Default binds
bind mouse1 +attack;
bind mouse2 +attack2;
bind space "+jump";
bind alt +lookatweapon;
bind f +voicerecord;
bind z "slot6";
bind x "slot7";
bind c "slot8";
bind v "slot10";
@MahBoiDeveloper
MahBoiDeveloper / CMake-SyncFileDir.txt
Created July 5, 2026 09:09
Tracking config directories in CMake
# Copying directory recursive with tracking changes on build
# Source: https://discourse.cmake.org/t/copying-files-with-destination-folder-depending-on-build-config/10686
cmake_minimum_required(VERSION 3.26 FATAL_ERROR)
add_custom_target(SyncFileDir
COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different
"${SOURCE_DIR}"
"${DESTINATION_DIR}"
COMMENT "Synchronize file directories"
)