Skip to content

Instantly share code, notes, and snippets.

View Pendrokar's full-sized avatar

Yanis Lukes Pendrokar

View GitHub Profile
@Pendrokar
Pendrokar / xvatts-ibs.py
Created December 11, 2022 17:02
Reads the latest log file of Infinity: Battlescape and uses xVASynth as TTS
import sys
import queue
import winsound
import urllib
import requests
import os
from os.path import exists
import asyncio
import random
@Pendrokar
Pendrokar / TouchControls.usc
Last active August 21, 2019 10:37
Unigine Touchscreen FPS Flight Controls
#include <core/unigine.h>
// This file is in UnigineScript language.
// World script, it takes effect only when the world is loaded.
Player player;
// -1 = not tracked
int moveTouchID = -1;
int turnTouchID = -1;
//int lastNumTouches = 0;
@Pendrokar
Pendrokar / sacred_autohotkey.ahk
Created June 25, 2018 17:50
Sacred Underworld Autohotkey script
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%
#SingleInstance force
#InstallKeybdHook
#IfWinActive ahk_class Sacred
;; new::original
; +/- (numeric keypad) Zoom in/out
@Pendrokar
Pendrokar / spotify.vbs
Last active November 29, 2019 09:48
Spotify playlist play using Vbscript
Set WshShell = WScript.CreateObject("WScript.Shell")
' spotify or user_id_number if playlist is private. ID can be found by using Spotify's Share button
WshShell.Run "spotify:user:<spotify/user_id_number>:playlist:<playlist_code>", 3, false
WScript.sleep 20000
' Change active Window
WshShell.AppActivate "Spotify"
' Start playing selected queue
WshShell.SendKeys " "
' Focus?
WshShell.SendKeys "{ENTER}"
@Pendrokar
Pendrokar / git.bat
Last active January 25, 2017 18:27
Access Git in command prompt from within 'Bash on Ubuntu on Windows' environment by having this within environment variables. I am not a good Batch script writer though.
@echo off
SETLOCAL EnableDelayedExpansion
rem Get drive letter along with the colon and backslash
SET _cdDrive=%cd:~0,3%
rem Get drive letter
SET mntPath=%_cdDrive:~0,1%
rem mnt/<driveLetter> is lower case, has to be converted
call :LoCase mntPath
SET mntPath=/mnt/%mntPath%/