Skip to content

Instantly share code, notes, and snippets.

View xDShot's full-sized avatar

xDShot

  • Digital Hell
View GitHub Profile
@xDShot
xDShot / vk_ublock.txt
Last active June 3, 2019 19:50
uBlock filters to remove ads in vk.com. Just paste these lines into your filters.
vk.com##div[data-ad-view]
vk.com##div[data-ad]
vk.com##div[data-ads]
vk.com##.ads_ads_box
vk.com##.ads_ads_news_wrap
@xDShot
xDShot / PKGBUILD
Last active September 9, 2016 15:14
Updated PKGBUILD for the 'micro' package on the AUR. Makefile is completely broken, so we are going in 'hard way'. What a shame.
# Maintainer: Youngbin Han <sukso96100@gmail.com>
# Maintainer: xDShot <xdshot9000@gmail.com>
pkgname=micro
pkgver=1.0.3
pkgrel=1
pkgdesc="A modern and intuitive terminal-based text editor"
arch=('x86_64' 'i686')
url="https://github.com/zyedidia/micro"
license=('MIT')
makedepends=('go')
@xDShot
xDShot / PizzaDelivery.uc
Created October 20, 2016 06:51
Unlocks achievements in Deus Ex Revision
class PizzaDelivery extends Trigger;
function Trigger(Actor Other, Pawn Instigator)
{
if (GiveAchievement())
{
Super.Trigger(Other, Instigator);
if (bTriggerOnceOnly)
Destroy();
}
import bpy
active_armature = bpy.data.objects['v_pist_deagle_csco_reference_skeleton']
target_armature = bpy.data.objects['v_deagle_ref_deonly_skeleton']
mah_bois = [
"v_weapon.Bip01_R_Forearm",
"v_weapon.Bip01_R_ForeTwist",
"v_weapon.Bip01_R_Hand",
@xDShot
xDShot / _batchprocess_vtf.sh
Created January 20, 2018 06:46
Re-convert vtf textures into older format to support older Source Engine versions
#!/usr/bin/bash
for D in ./*; do
if [ -d "$D" ]; then
echo "I go into $D folder"
cd "$D"
for i in *; do
if [ ${i: -4} == ".vmt" ]
then
echo "Remove $i text file"
@xDShot
xDShot / _batchprocess_qc.sh
Created January 20, 2018 06:47
Batch compile all .qc in subfolders to Source Engine models
#!/usr/bin/bash
for D in ./*; do
if [ -d "$D" ]; then
echo "I go into $D folder"
cd "$D"
for qc in *.qc; do
echo "Batch processing the $qc"
studiomdl-hl2 $qc
done
"VetexLitGeneric"
{
"$basetexture" "your/animated/texture"
//Put your desired values here
// Edit these
$_totalframes 4
$_framerate 2 //animatedTextureFrameRate
@xDShot
xDShot / varecord.sh
Created August 28, 2019 08:48
Record desktop using vaapi
#!/bin/bash
#Incomplete. There are still ways of improvements
INRES="1920x1080" # input resolution
OUTRES="1920x1080" # output resolution
FPS="60" # target FPS
GOP="120" # i-frame interval, should be double of FPS,
GOPMIN="60" # min i-frame interval, should be equal to fps,
THREADS="2" # max 6
WINEPREFIX=~/_prefix32_wine WINEARCH=win32 WINEDLLOVERRIDES=libglesv2.dll=d wine ShittyElectronApp.exe --disable-gpu --no-sandbox --single-process
@xDShot
xDShot / darkplaces-win64-make.sh
Created November 23, 2019 09:01
Cross compile darkplaces on Linux for WIndows 64bit with mingw
export CFLAGS="-march=znver1 -O2 -pipe -fno-plt" # makefile doesn't really care
export CXXFLAGS="${CFLAGS}"
export LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
export CC=x86_64-w64-mingw32-gcc
export WINDRES=x86_64-w64-mingw32-windres
export STRIP=x86_64-w64-mingw32-strip
export SDL_CONFIG=x86_64-w64-mingw32-sdl2-config
export DP_MAKE_TARGET=mingw
make $@