This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/etc/modprobe.d/usbcore_use_both_schemes.conf | |
options usbcore use_both_schemes=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while read p; do echo "\$sequence $p ${p}.smd"; done < seqs.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo archlinux-java set java-8-openjdk | |
sudo ${ANDROID_HOME}/tools/bin/sdkmanager _whatever_ | |
sudo archlinux-java set java-11-openjdk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
env __GLX_VENDOR_LIBRARY_NAME=mesa MESA_LOADER_DRIVER_OVERRIDE=zink GALLIUM_DRIVER=zink $@ |
NewerOlder