Skip to content

Instantly share code, notes, and snippets.

View DarkWanderer's full-sized avatar

Oleg V. Kozlyuk DarkWanderer

View GitHub Profile
@DarkWanderer
DarkWanderer / tasks.json
Created March 18, 2025 12:53
Maven error matcher for VSCode
{
"version": "2.0.0",
"tasks": [
{
"label": "Maven Build",
"type": "shell",
"command": "mvn",
"args": [
"clean",
"install"
@DarkWanderer
DarkWanderer / SetDolbyAtmosDefault.ps1
Last active December 22, 2023 08:02
Set "Dolby Atmos" as default Spatial Sound provider
# This script changes registry so that default "Spatial Sound" setting is Dolby Atmos
# This works around Windows randomly reverting "Spatial Sound" to "Windows Sonic" or "Off"
# Download the file and double-click it to launch
$settingsKey="@{windows?ms-resource://Windows.UI.SettingsAppThreshold/SearchResources/SystemSettings_Audio_Output_Modern_Properties-3/HighKeywords}"
$settingsPathL0 = "HKEY_CLASSES_ROOT\Local Settings\MrtCache\C:%5CWINDOWS%5CSystemResources%5CWindows.UI.SettingsAppThreshold%5CWindows.UI.SettingsAppThreshold.pri"
$settingsPathL1 = Get-ChildItem -Path Registry::$settingsPathL0
$settingsPathL2 = Get-ChildItem -Path Registry::$settingsPathL1
Set-ItemProperty -Path Registry::$settingsPathL2 -Name $settingsKey -Value "spatial audio;spatial format;Dolby Atmos"
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace Dapper.Tests
{
@DarkWanderer
DarkWanderer / Cargo.toml
Last active June 14, 2023 15:19
Example ArmA 3 extension using Rust language
[package]
name = "arma-extension"
version = "0.1.0"
authors = ["DarkWanderer <elquentaro@gmail.com>"]
edition = "2018"
[lib]
crate-type = ["cdylib"]
bench = false
@DarkWanderer
DarkWanderer / gist:3ac07a213bfc8a02932d
Last active August 29, 2015 14:20
Joystick detection test
#include <dinput.h>
#include <assert.h>
#include <exception>
#include <iostream>
#include <string>
#include <chrono>
#include <list>
#pragma region Usings
using std::cout;