Skip to content

Instantly share code, notes, and snippets.

View xDShot's full-sized avatar

xDShot

  • Digital Hell
View GitHub Profile
@xDShot
xDShot / yt-dlp-templates.sh
Created June 14, 2024 20:31
yt-dlp templates
# Yandex
export YA_ALBUM="Albums/%(artist)s/%(album)s (%(release_year)s)/%(track_number)02d %(artist)s - %(track)s-%(id)s.%(ext)s"
export YA_TRACK="%(artist)s - %(track)s-%(id)s.%(ext)s"
function YA_dl () {
yt-dlp --cookies-from-browser chrome -o "$1" --restrict-filenames $2
}
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 $@