Skip to content

Instantly share code, notes, and snippets.

View Meister1593's full-sized avatar

Meister1593 Meister1593

View GitHub Profile
@Meister1593
Meister1593 / audio-setup.sh
Last active June 5, 2023 21:19
ALVR on connect/on disconnect automatic audio and microphone
#!/bin/bash
function get_alvr_playback_source_id() {
local last_node_name=''
local last_node_id=''
pactl list $1 | while read -r line; do
node_id=$(echo "$line" | grep -oP "$2 #\K.+" | sed -e 's/^[ \t]*//')
node_name=$(echo "$line" | grep -oP 'node.name = "\K[^"]+' | sed -e 's/^[ \t]*//')
if [[ "$node_id" != '' ]] && [[ "$last_node_id" != "$node_id" ]]; then
last_node_id="$node_id"
@Meister1593
Meister1593 / patch_bindings_spam.sh
Last active October 24, 2024 20:50
SteamVR patcher to remove websocket spam
#!/bin/bash
echo "Latest known working version for patching: 2.3.5"
if [[ -z "$1" ]]; then
echo 'Enter absolute path to SteamVR (for example, /home/user/.local/share/Steam/steamapps/common/SteamVR)'
read STEAMVR_PATH
else
STEAMVR_PATH="$1"
fi
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at LiteNetLib.NetPeer.SendUserData (LiteNetLib.NetPacket packet) [0x00000] in <96f5132d9c114deb87bb4553fe90c691>:0
at LiteNetLib.NetPeer.Flush () [0x00055] in <96f5132d9c114deb87bb4553fe90c691>:0
at LiteNetLib.NetPeer.Update (System.Int32 deltaTime) [0x001f9] in <96f5132d9c114deb87bb4553fe90c691>:0
at LiteNetLib.NetManager.UpdateLogic () [0x00058] in <96f5132d9c114deb87bb4553fe90c691>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <8a11cb089f0046488a9b0fb26e056b58>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <8a11cb089f0046488a9b0fb26e056b58>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback,
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 5 1600 Six-Core Processor
CPU Family: 0x17
System: Host: plyshkapc Kernel: 5.6.4-arch1-1 x86_64 bits: 64 Desktop: KDE Plasma 5.18.4 Distro: Arch Linux
Machine: Type: Desktop Mobo: ASRock model: B450M Pro4 serial: <superuser/root required> UEFI: American Megatrends v: P3.50
date: 07/18/2019
CPU: Topology: 6-Core model: AMD Ryzen 5 1600 bits: 64 type: MT MCP L2 cache: 3072 KiB
Speed: 1349 MHz min/max: 1550/3200 MHz Core speeds (MHz): 1: 3652 2: 1848 3: 3690 4: 1477 5: 1463 6: 1477 7: 3692
8: 1477 9: 3365 10: 2034 11: 1457 12: 1477
Graphics: Device-1: NVIDIA GP106 [GeForce GTX 1060 3GB] driver: nvidia v: 440.66.09
Display: x11 server: X.Org 1.20.8 driver: nvidia unloaded: modesetting resolution: 1920x1080~60Hz, 1920x1080~60Hz
OpenGL: renderer: GeForce GTX 1060 3GB/PCIe/SSE2 v: 4.6.0 NVIDIA 440.66.09
Audio: Device-1: NVIDIA GP106 High Definition Audio driver: snd_hda_intel
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Tools</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{8AC46FC7-DB74-4544-8212-7A3E42741CE5}</ProjectGuid>
<OutputType>Library</OutputType>
<OutputPath>.mono/temp/bin/$(Configuration)</OutputPath>
<RootNamespace>Gareo</RootNamespace>
<AssemblyName>Gareo</AssemblyName>