Skip to content

Instantly share code, notes, and snippets.

View erm3nda's full-sized avatar
😑
Expressionless master

m3nda erm3nda

😑
Expressionless master
  • n0n3
  • localhost
View GitHub Profile
@erm3nda
erm3nda / uvr-rebuild-no-music-cmd
Last active August 26, 2026 11:46
This uses ffmpeg to recompose video after running UVR, just drop files and it will find the right audio tracks to recompose
@echo off
setlocal enabledelayedexpansion
chcp 65001 > nul
echo =======================================================
echo RESTAURADOR DE AUDIO PARA CLIPS DE VIDEO (FFmpeg)
echo =======================================================
echo.
if "%~1"=="" (
@erm3nda
erm3nda / reduce-docker-vhd.ps1
Created August 26, 2026 11:44
Reduce vhd docker disk size
# reduce-docker-vhd.ps1
# Script to locate and shrink/compact the Docker Desktop WSL2 virtual disk (docker_data.vhdx)
$ErrorActionPreference = "Stop"
# 1. Locate the VHDX file
$vhdxPath = "$env:LOCALAPPDATA\Docker\wsl\disk\docker_data.vhdx"
if (-not (Test-Path $vhdxPath)) {
# Search for any docker_data.vhdx or ext4.vhdx in the AppData\Local\Docker folder as a fallback
@erm3nda
erm3nda / remove-music.cmd
Created August 2, 2026 09:44
Script para reconstruir el vídeo original con el audio sin música procesado
@echo off
setlocal enabledelayedexpansion
chcp 65001 > nul
echo =======================================================
echo RESTAURADOR DE AUDIO PARA CLIPS DE VIDEO (FFmpeg)
echo =======================================================
echo.
if "%~1"=="" (
-- This Source Code Form is subject to the terms of the bCDDL, v. 1.1.
-- If a copy of the bCDDL was not distributed with this
-- file, You can obtain one at http://beamng.com/bCDDL-1.1.txt
--define missing functions
pluginPath = debug.getinfo(1).source:gsub("\\","/")
pluginPath = pluginPath:sub(1, (pluginPath:find("trafficSignals.lua"))-2)
@erm3nda
erm3nda / OpenWithCode.reg
Created June 13, 2023 22:55
Lets you add the proper handler for Directory and Directory\Background types for VS Code
Windows Registry Editor Version 5.00
; Open files [HKEY_CLASSES_ROOT\*\shell\Open with VS Code] @="Edit with VS Code"
"Icon"="%LocalAppData%\\Programs\\Microsoft VS Code\\Code.exe"
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"%LocalAppData%\\Programs\\Microsoft VS Code\\Code.exe\" \"%1\""
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
@erm3nda
erm3nda / ww3_slide_helper.akh
Last active January 7, 2023 08:55
WW3 slide helper to continue sprinting after sliding.
; This modifies the behavior after slide, helps to continue sprinting after sliding.
; You can still press crouch manually while sliding to keep crouched after slide.
; You need to edit the key of slide (mine is LAlt) and maybe Space to jump ?.
; This is AutoHotkey v2 syntax
; All the close stuff is made to let Steam detect when the "game" has exit, which is the autohotkey process handle now.
~LAlt::{
If (GetKeyState("LAlt", "P") && GetKeyState("CapsLock", "P") && WinActive("ahk_exe WW3-Win64-Shipping.exe")){
Sleep 200
Send "{Space down}"
@erm3nda
erm3nda / asseto_corsa_x360_settings.txt
Last active May 25, 2022 21:32
List of x360 gamepad settings for Asseto Corsa
Speed Sensitivity=80%
Steering Speed=100
Gamma=2.4
Filter=0.82
Deadzone=0.23
@erm3nda
erm3nda / visitors.sh
Created May 8, 2022 08:11
Gives you accounting for unique visitors to given log file.
#!/bin/bash
# gives you accounting for unique visitors
cat $1 | cut -d" " -f1 | sort | uniq | wc -l
@erm3nda
erm3nda / userChrome.css
Created May 6, 2022 15:45
Fix Firefox window buttons decoration with css (because gtk themed)
hbox.titlebar-buttonbox {
appearance: none !important;
}
toolbarbutton.titlebar-button {
border-radius: 0px !important;
min-height: 45px !important;
}
@erm3nda
erm3nda / f4_close_windows_and_logout_kde_plasma
Created May 3, 2022 02:16
Give KDE Plasma same F4 shortcut behavior -> Close active window or gimme logout window
#!/bin/bash
xdotool getwindowfocus getwindowname | \
grep "Plasma" && \
qdbus org.kde.ksmserver /KSMServer logout 1 0 1 || \
xdotool getwindowfocus windowclose