Skip to content

Instantly share code, notes, and snippets.

View LuanVSO's full-sized avatar

Luan Vitor Simião Oliveira LuanVSO

View GitHub Profile
@LuanVSO
LuanVSO / build-m3uFiles.ps1
Last active January 6, 2024 21:15
generate m3u files for retroarch
#Requires -Version 7.2
cd "psx"
ls .\multi-disc\ -Directory | % {
((ls -LiteralPath $_ -Include *.chd | Resolve-Path -Relative) -replace "\\","/").substring(2) |
out-file -encoding utf8NoBOM -literalpath "$($_.BaseName).m3u"
}
@LuanVSO
LuanVSO / retroarch-android.cfg
Last active June 9, 2023 21:01
retroarch config file that i use with controller rumble on android
accessibility_enable = "false"
accessibility_narrator_speech_speed = "5"
ai_service_enable = "true"
ai_service_mode = "0"
ai_service_pause = "true"
ai_service_source_lang = "6"
ai_service_target_lang = "1"
ai_service_url = "http://ztranslate.net/service?api_key="
all_users_control_menu = "true"
android_input_disconnect_workaround = "true"
@LuanVSO
LuanVSO / convert-chd.ps1
Last active April 30, 2023 02:41
convert folder or single isos, cues and gdi to chd
<#PSScriptInfo
.VERSION 0.1.0
.GUID 0fbb9235-e965-40c4-8b57-f85cfb19f823
.AUTHOR Luan Vitor Simião Oliveira
.COPYRIGHT Luan Vitor Simião Oliveira
.TAGS chd convert iso cue gdi 7z
.LICENSEURI https://creativecommons.org/licenses/by/4.0/
.PROJECTURI https://gist.github.com/LuanVSO/d3e8dca9ad89e6e3b9b83fdc6dc5f0d4
.RELEASENOTES initial version
#>
__wt_osc9_9 () {
_win_path=$(wslpath -m "$(pwd)")
printf "\033]9;9;\"%s\"\033\\" "$_win_path"
}
[ -n "$BASH_VERSION" ] && [ -n "$WT_SESSION" ] && PROMPT_COMMAND="__wt_osc9_9"
[ -n "$ZSH_VERSION" ] && [ -n "$WT_SESSION" ] &&
if ((!precmd_functions[(I)__wt_osc9_9])) ; then
precmd_functions+=(__wt_osc9_9)
fi
__wt_osc9-9 () {
_win_path="$(cygpath -m $(pwd))"
printf "\033]9;9;\"%s\"\033\\" "$_win_path"
}
[ -n "$BASH_VERSION" ] && [ -n "$WT_SESSION" ] && PROMPT_COMMAND="__wt_osc9-9"
#you have to put this in $profile or $profile.currentuserallhosts
$esc = [char]27
if($env:WT_SESSION){
$prevprompt = $Function:prompt
function prompt {
if ($pwd.provider.name -eq "FileSystem") {
$p = $pwd.ProviderPath
Write-host "$esc]9;9;`"$p`"$esc\" -NoNewline
}
setx PROMPT $E]9;9;"$P"$E\$P$G
setx PROMPT $E]7;file://%%COMPUTERNAME%%/$P$E\$P$G