Skip to content

Instantly share code, notes, and snippets.

View manciuszz's full-sized avatar

MMWorks manciuszz

View GitHub Profile
@manciuszz
manciuszz / MSI GS70 Stealth Keyboard Temp Fix.ahk
Last active February 18, 2020 17:16
MSI GS70 Stealth Keyboard Temp Fix.ahk - These notebooks seem to have a really stupid design fault that damages the keyboard flex cable (Source: https://forum-en.msi.com/index.php?topic=180340.0). So, because I couldn't be arsed to fix the hardware - I went the software route. This AutoHotKey script will allow users to use those broken keys by c…
#NoEnv
#UseHook
#Persistent
#KeyHistory 0
#SingleInstance Force
SetBatchLines, -1
SetKeyDelay, -1, -1
SendMode Input
class AppConfig {
@manciuszz
manciuszz / kissMangaAntiAdBlockCF.user.js
Last active March 9, 2020 20:39
KissManga Cloudflare Challenge Anti-AdBlock Counter-Tamper.
// ==UserScript==
// @name KissManga - AdBlock Tampered Cloudflare Challenge Bypass
// @version 0.11
// @author Manciuszz
// @match *://kissmanga.com/*
// @grant unsafeWindow
// ==/UserScript==
(function() {
'use strict';
@manciuszz
manciuszz / Huawei_B525s-23a_name_filler.js
Created October 17, 2020 15:35
Huawei B525s-23a router's 'Domain Name Filter' filler script that allows users to automatically fill Domain Name Filter table with values from a normal hostname list...
// Huawei B525s-23a router's 'Domain Name Filter' filler script that allows users to automatically fill Domain Name Filter table with values from a normal hostname list
/*
# Blacklist example:
abtest.mistat.intl.xiaomi.com
abtest.mistat.xiaomi.com
account.preview.n.xiaomi.net
account.xiaomi.com
ad1.xiaomi.com
ad.mi.com
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 / primecache-content.sh
Last active December 19, 2021 22:49
PrimoCache shell script to preload data to cache.
#!/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");
@manciuszz
manciuszz / OpenSymlink.reg
Created March 31, 2023 17:40
Windows 10/11 - Add 'Open real file location' context menu item.
@manciuszz
manciuszz / Optimized-Steam.ahk
Created April 6, 2023 01:43
Fast No-Browser STEAM Client Launcher using AutoHotkey
#NoEnv
#NoTrayIcon
ListLines Off
SetBatchLines, -1
Process, Priority,, H
SetWorkingDir %A_ScriptDir%
argumentList =
(
@manciuszz
manciuszz / DeviceProfiles.ini
Last active July 1, 2023 01:20
'Vampire: The Masquerade - Bloodhunt' performance tweaking
[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 / DeviceProfiles.ini
Last active September 22, 2023 22:55
The Finals Playtest Performance Config v2
[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 / downgrade_steam.ps1
Last active March 30, 2024 01:02
Script to automatically download and extract the downgraded version of STEAM Client using PowerShell.
# Script requires to be relative to 'Steam.exe' in order to work
Start-Process -FilePath "Steam.exe" -NoNewWindow -Wait -ArgumentList "-forcesteamupdate", "-forcepackagedownload", "-overridepackageurl https://archive.org/download/dec2022steam", "-exitsteam"
Write-Host "Creating steam.cfg to block STEAM updates" -ForegroundColor Yellow
Set-Content -Path "steam.cfg" -Value "BootStrapperInhibitAll=enable"
Write-Host "... Now you can start STEAM as before with commands like '-no-browser'" -ForegroundColor Green