Skip to content

Instantly share code, notes, and snippets.

View xDShot's full-sized avatar

xDShot

  • Digital Hell
View GitHub Profile
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 / gist:80ab0169cf7ca26395bb7f086177dcef
Created November 17, 2022 18:50
Fix Android SDK sdkmanager NoClassDefFoundError
sudo archlinux-java set java-8-openjdk
sudo ${ANDROID_HOME}/tools/bin/sdkmanager _whatever_
sudo archlinux-java set java-11-openjdk
@xDShot
xDShot / discordencode.sh
Last active September 13, 2022 03:54 — forked from CallumDev/discordencode.sh
Bash script to encode videos with ffmpeg to under discord's 8MiB file limit
#!/bin/bash
# discordencode - encodes a video file to under 8MiB for Discord
usage () {
echo "Usage: [NOAUDIO=1] [VPRESET=x264-preset] discordencode input output.mp4"
}
if [ -z "$1" ]
then
usage
exit 1
fi
@xDShot
xDShot / zink-wrap.sh
Created July 25, 2022 11:55
Run OpenGL games in zink Vulkan wrapper
#!/bin/bash
env __GLX_VENDOR_LIBRARY_NAME=mesa MESA_LOADER_DRIVER_OVERRIDE=zink GALLIUM_DRIVER=zink $@
@xDShot
xDShot / source-mdl.hexpat
Last active December 18, 2022 16:32
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