Skip to content

Instantly share code, notes, and snippets.

View infirms's full-sized avatar
🤔

infirms infirms

🤔
View GitHub Profile
@infirms
infirms / cs2-intel-fix.txt
Last active April 3, 2024 19:50
Fix for freezes that can occur on 12-14th Gen Intel Processors
EDIT Seems that valve fixed this problem???
I'm referring to the 4/3/24 cs2 update
Let's start
Parallel processing is used everywhere:
- Particles
- Animations
- Client-side Prediction
- Network processing
@infirms
infirms / portable_clang-cl.txt
Last active November 22, 2023 14:20
Portable clang-cl toolchain CI/CD
This information can be useful for ci/cd or creating reproducable build across all developers with 0 dependencies.
For clang-cl you need some specific msvc stuff that only comes with Visual Studio and it's built in compiler, fortunatenly @mmozeiko
created really really convinient solution for this big thanks to him.
Use his script to download both x86 and x64 msvc and later on merge 2 folders in one.
Script:
https://gist.github.com/mmozeiko/7f3162ec2988e81e56d5c4e22cde9977
Download latest clang release for win32 open exe installer with 7zip and extact bin and lib folder only for x64, for x86 we will crosscompile.
https://github.com/llvm/llvm-project/releases
@infirms
infirms / clang_crosscompile.txt
Last active August 23, 2023 10:43
My own way how to crosscompile clang64 to be able produce both x64 and x86 binraries
Install both x86 and x64 clang compilers.(clang64 and clang32)
Get the actual path of your x86 clang.
Add this to your clang64 compiler flags editing the path if needed:
-resource-dir c:/tools/msys64/clang32/lib/clang/16
--sysroot=c:/tools/msys64/clang32
-m32
--target=i686-w64-windows-gnu
@infirms
infirms / cli_to_mafile.py
Created July 1, 2023 11:47
Allows to convert steamguard-cli maFile format to the SDA maFile format with some drawbacks. Usage: python cli_to_mafile.py <cli-mafile> <output-mafile>
import json
import sys
def convert_json(input_file, output_file):
with open(input_file, 'r') as f:
data = json.load(f)
new_data = {
"shared_secret": "REPLACEME",
"serial_number": "REPLACEME",