Skip to content

Instantly share code, notes, and snippets.

View infirms's full-sized avatar
🤔

infirms infirms

🤔
View GitHub Profile
@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
@mmozeiko
mmozeiko / !README.md
Last active May 30, 2024 21:38
Download MSVC compiler/linker & Windows SDK without installing full Visual Studio

This downloads standalone 64-bit MSVC compiler, linker & other tools, also headers/libraries from Windows SDK into portable folder, without installing Visual Studio. Has bare minimum components - no UWP/Store/WindowsRT stuff, just files & tools for 64-bit native desktop app development.

Run python.exe portable-msvc.py and it will download output into msvc folder. By default it will download latest available MSVC & Windows SDK - currently v14.32.17.2 and v10.0.22621.0.

You can list available versions with python.exe portable-msvc.py --show-versions and then pass versions you want with --msvc-version and --sdk-version arguments.

To use cl.exe/link.exe from output folder, first run setup.bat - after that PATH/INCLUDE/LIB env variables will be setup to use all the tools as usual. You can also use clang-cl.exe with these includes & libraries.

To use clang-cl.exe without running setup.bat, pass extra /winsysroot msvc argument (msvc is folder name where output is stored).

@fatalbit
fatalbit / theme.css
Last active September 6, 2023 19:57
IDA Monokai Color Palette
/* INSTALL:
*
* Put this file under the respective directory.
* Windows: %APPDATA%\Hex-Rays\IDA Pro\themes\monokai\theme.css
* Linux & MacOS: ~/.idapro/themes/monokai/theme.css
*
* In Options -> Colors change theme to monokai
*
* */
@importtheme "dark";
@hanksudo
hanksudo / enable-ant-aliasing-vscode.md
Last active September 27, 2023 12:30
Enable font anti-aliasing on VS Code
vim /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.css

add to .editor-container section

-webkit-font-smoothing: antialiased;