Skip to content

Instantly share code, notes, and snippets.

Avatar

MMWorks manciuszz

View GitHub Profile
@manciuszz
manciuszz / AutoExecutor.ahk
Last active April 30, 2023 15:58
Fast 'shell:startup' and Task Scheduler Auto Application Startup replacement using AutoHotkey
View AutoExecutor.ahk
#NoEnv
#SingleInstance Force
#NoTrayIcon
SetBatchLines, -1
SetKeyDelay, -1, 1
SetMouseDelay, -1
SetWinDelay, -1
SetControlDelay, -1
@manciuszz
manciuszz / Optimized-Steam.ahk
Created April 6, 2023 01:43
Fast No-Browser STEAM Client Launcher using AutoHotkey
View Optimized-Steam.ahk
#NoEnv
#NoTrayIcon
ListLines Off
SetBatchLines, -1
Process, Priority,, H
SetWorkingDir %A_ScriptDir%
argumentList =
(
@manciuszz
manciuszz / OpenSymlink.reg
Created March 31, 2023 17:40
Windows 10/11 - Add 'Open real file location' context menu item.
View OpenSymlink.reg
@manciuszz
manciuszz / DeviceProfiles.ini
Last active March 21, 2023 03:30
The Finals Playtest Performance Config v2
View DeviceProfiles.ini
[WindowsClient DeviceProfile]
TextureLODGroups=(Group=TEXTUREGROUP_World,MinLODSize=0,MaxLODSize=512,MipGenSettings=TMGS_NoMipmaps)
TextureLODGroups=(Group=TEXTUREGROUP_WorldNormalMap,MinLODSize=0,MaxLODSize=0,MipGenSettings=TMGS_NoMipmaps)
TextureLODGroups=(Group=TEXTUREGROUP_WorldSpecular,MinLODSize=0,MaxLODSize=0,MipGenSettings=TMGS_NoMipmaps)
TextureLODGroups=(Group=TEXTUREGROUP_Character,MinLODSize=0,MaxLODSize=512,MipGenSettings=TMGS_NoMipmaps)
TextureLODGroups=(Group=TEXTUREGROUP_CharacterNormalMap,MinLODSize=0,MaxLODSize=512,MipGenSettings=TMGS_NoMipmaps)
TextureLODGroups=(Group=TEXTUREGROUP_CharacterSpecular,MinLODSize=0,MaxLODSize=512,MipGenSettings=TMGS_NoMipmaps)
TextureLODGroups=(Group=TEXTUREGROUP_Weapon,MinLODSize=0,MaxLODSize=256,MipGenSettings=TMGS_NoMipmaps)
TextureLODGroups=(Group=TEXTUREGROUP_WeaponNormalMap,MinLODSize=0,MaxLODSize=0,MipGenSettings=TMGS_NoMipmaps)
TextureLODGroups=(Group=TEXTUREGROUP_WeaponSpecular,MinLODSize=0,MaxLODSize=0,MipGenSettings=TMGS_NoMipmaps)
@manciuszz
manciuszz / dumper.bat
Last active March 12, 2023 01:25
Dump Unreal Engine ini files by drag-dropping the game .exe on this batch file.
View dumper.bat
@echo off
set dumper_path=DumpedConfigs\
set process_path=%~1
start "Dump-Inis" "%process_path%" ^
-AHGameSettingsSubsystemIni=%dumper_path%AHGameSettingsSubsystem.ini ^
-ApexDestructionIni=%dumper_path%ApexDestruction.ini ^
-CameraCalibrationCoreIni=%dumper_path%CameraCalibrationCore.ini ^
-CompatIni=%dumper_path%Compat.ini ^
-DefCompatIni=%dumper_path%DefCompat.ini ^
-ComposureIni=%dumper_path%Composure.ini ^
@manciuszz
manciuszz / downgrade_steam.ps1
Last active February 23, 2023 17:52
Script to automatically download and extract the downgraded version of STEAM Client using PowerShell.
View downgrade_steam.ps1
# Script based on the information of this STEAM forum post:
# https://steamcommunity.com/groups/SteamClientBeta/discussions/3/3710433479207750727/?ctp=44#c3763355849151540150
# Define the package list
$URL_LIST = @(
"http://media2.steampowered.com/client/bins_cef_win32_win10-64.zip.e95f6a85b5fc78198eb662f54d8673fd0dc8c0e6",
"http://media2.steampowered.com/client/bins_codecs_win32.zip.c24511ddbb9b44737097dbf66b8f93d2dfba868e",
"http://media2.steampowered.com/client/bins_misc_win32.zip.495f560691a969371f6f81dc8f3aba73c51906cf",
"http://media2.steampowered.com/client/bins_webhelpers_win32_win10-64.zip.42464337ec9bcad255e9f5026987d839b2cea16f",
"http://media2.steampowered.com/client/bins_win32.zip.afbe8612dfe857ae3e8ba69d1013386f47a5b0c0",
@manciuszz
manciuszz / DeviceProfiles.ini
Last active July 1, 2023 01:20
'Vampire: The Masquerade - Bloodhunt' performance tweaking
View DeviceProfiles.ini
[WindowsNoEditor DeviceProfile]
CVars=D3D12.PSO.DiskCache=1
CVars=D3D12.PSO.DriverOptimizedDiskCache=1
CVars=r.ShaderPipelineCache.Enabled=1
CVars=r.ShaderPipelineCache.StartupMode=1
CVars=r.ShaderPipelineCache.PreOptimizeEnabled=1
CVars=r.ShaderPipelineCache.GameFileMaskEnabled=0
CVars=r.ShaderPipelineCache.BatchSize=50
CVars=r.ShaderPipelineCache.BackgroundBatchSize=1
CVars=r.ShaderPipelineCache.PrecompileBatchSize=50
@manciuszz
manciuszz / primecache-content.sh
Last active December 19, 2021 22:49
PrimoCache shell script to preload data to cache.
View primecache-content.sh
#!/bin/sh
read_files_from_textfile() {
while IFS=$' \t\r\n' read -r directory || [ -n "$directory" ]; do
read_files_from_directory "$directory"
done < "$1"
}
read_files_from_directory() {
suffix=$([ $# -gt 1 ] && echo "ies" || echo "y");
View trigram-similarity.js
const nGram = function(n) {
if (
typeof n !== 'number' ||
Number.isNaN(n) ||
n < 1 ||
n === Number.POSITIVE_INFINITY
) {
throw new Error('`' + n + '` is not a valid argument for `n-gram`')
}
@manciuszz
manciuszz / Install-Hyper-V.bat
Last active June 14, 2023 08:53
Windows 10 Home | Hyper-V Management scripts
View Install-Hyper-V.bat
@echo off
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL