Skip to content

Instantly share code, notes, and snippets.

View xDShot's full-sized avatar

xDShot

  • Digital Hell
View GitHub Profile
@xDShot
xDShot / source-mdl.hexpat
Last active May 1, 2024 17:40
Source Engine mdl pattern for ImHex
//
#pragma pattern_limit 0x20000
#pragma array_limit 0x20000
#include <std/mem.pat>
#include <std/io.pat>
#include <std/string.pat>
#define MAX_NUM_LODS 8
WINEPREFIX=~/_prefix32_wine WINEARCH=win32 WINEDLLOVERRIDES=libglesv2.dll=d wine ShittyElectronApp.exe --disable-gpu --no-sandbox --single-process
@xDShot
xDShot / 90-dualsense-no-touchpad-input.rules
Created July 2, 2021 07:36
hid-playstation disable Sony Dualsense touchpad input
# /etc/udev/rules.d/90-dualsense-no-touchpad-input.rules
ACTION=="add|change", KERNEL=="event[0-9]*", ATTRS{name}=="*Wireless Controller Touchpad", ENV{LIBINPUT_IGNORE_DEVICE}="1"
import bpy
obj = bpy.context.selected_objects[0]
current_action = obj.id_data.animation_data.action
current_endframe = bpy.context.scene.frame_end
current_fps = bpy.context.scene.render.fps
remap_table = {
"Activate": "ex_m1911_pullout",
"Activate_SingleArm": "ex_m1911_dw_rh_pullout",
#!/usr/bin/env python
import os
import sys
from ctypes import CDLL
from subprocess import run
os.environ["STEAM_COMPAT_CLIENT_INSTALL_PATH"] = os.getenv("HOME") + "/.local/share/Steam/"
os.environ["PROTONDIR"] = os.getenv("STEAM_COMPAT_CLIENT_INSTALL_PATH") + "steamapps/common/Proton - Experimental/"
#os.environ["WINEDEBUG"] = "-all"
#os.environ["PROTON_LOG"] = "1"
@xDShot
xDShot / usbcore_use_both_schemes.conf
Created July 19, 2023 10:38
Fix Quest 2 usb MTP
#/etc/modprobe.d/usbcore_use_both_schemes.conf
options usbcore use_both_schemes=y
while read p; do echo "\$sequence $p ${p}.smd"; done < seqs.txt
@xDShot
xDShot / alyxfollower.cfg
Created June 20, 2023 19:17
Alyx follower
npc_create_equipment weapon_alyxgun; wait; npc_create npc_alyx; wait; ent_setname alyx; wait; ent_create ai_goal_follow actor alyx goal !player StartActive 1 Formation 3
#!/bin/bash
#https://github.com/alvr-org/ALVR/wiki/Building-From-Source
cargo xtask prepare-deps --no-nvidia
cargo xtask build-server --release
export JAVA_HOME=/usr/lib/jvm/default/
export ANDROID_HOME=/opt/android-sdk/
export ANDROID_NDK_HOME=/opt/android-sdk/ndk/25.2.9519653/
@xDShot
xDShot / crowbar-linux.md
Last active February 13, 2023 20:40
crowbar linux wine proton workshop

Dirty hack workaround how to upload L4D2 workshop stuff from Linux:

  1. Download and unpack Crowbar to some folder
  2. In same folder create file steam_appid.txt which just contains 550
  3. Add crowbar.exe as non-Steam game
  4. In it's properties, enable Compatibility, set to Proton Experimental
  5. Launch from Steam, do stuff, close.

For other games it's all same but type corresponding steam id in steam_appid.txt