Skip to content

Instantly share code, notes, and snippets.

View tarach's full-sized avatar

Sebastian Tarach tarach

View GitHub Profile
@tarach
tarach / auto-switch-back-audio-device.ahk
Last active January 16, 2025 18:05
When starting SteamVR on Quest 3 the default playback and recording switches to oculus. This is a workaround for that issue
; Script Requires a powershell extension
; https://www.powershellgallery.com/packages/AudioDeviceCmdlets/3.1.0.2
; https://github.com/frgnca/AudioDeviceCmdlets
; Configuration
global logMessages2File := true
; Declare global variables for the original Playback and Recording device indices
global originalPlayback := ""
global originalRecording := ""
@tarach
tarach / dump.php
Created February 16, 2024 20:53
Simple script to export each request to a separate file with generated ( date based )
<?php
declare(strict_types=1);
namespace Tarach;
/**
* Based of https://gist.github.com/magnetikonline/650e30e485c0f91f2f40
*/
class DumpHTTPRequestToFile
{
@tarach
tarach / gist:e1c7d0071e2d2675002456da4cde2734
Created October 29, 2023 04:08
Forward socket ( /run/docker.sock ) to a port using socat
socat TCP-LISTEN:2376,reuseaddr,fork UNIX-CONNECT:/run/docker.sock