Skip to content

Instantly share code, notes, and snippets.

@autozimu
autozimu / core.diff
Created September 4, 2025 20:35
core diff
This file has been truncated, but you can view the full file.
diff --git a/0e6a3c159501cc2b/fbsource/arvr/libraries/hz_tracing/hz_tracing.vcxproj b/0e6a3c159501cc2b/fbsource/arvr/libraries/hz_tracing/hz_tracing.vcxproj
index d648a2b..3acb30c 100644
--- a/0e6a3c159501cc2b/fbsource/arvr/libraries/hz_tracing/hz_tracing.vcxproj
+++ b/0e6a3c159501cc2b/fbsource/arvr/libraries/hz_tracing/hz_tracing.vcxproj
@@ -40,7 +40,7 @@
<ItemDefinitionGroup>
<ClCompile Label="CompilerSettings">
- <AdditionalIncludeDirectories>$(RepoRoot)\xplat;$(RepoRoot)\third-party\boost\boost;$(RepoRoot)\third-party\fmt\fmt\include;$(RepoRoot)\arvr\third-party\gflags\include\windows;$(RepoRoot)\third-party\glog;$(RepoRoot)\third-party\glog\glog-0.3.4\src\windows;$(RepoRoot)\third-party\double-conversion\double-conversion;$(RepoRoot)\third-party\fast_float\include;$(RepoRoot)\arvr\libraries\hz_tracing\include;$(RepoRoot)\buck-out\v2\gen\fbsource\0e6a3c159501cc2b\arvr\third-party\toolchains\llvm\19.1.2_fb\__win_includes__\win_includes;$(RepoRoot)\third-party\toolchains\visual_st
@autozimu
autozimu / semver.diff
Created September 4, 2025 20:23
Diff simple semver
diff --git a/1ea38bcbf131bd9f/fbsource/third-party/semver/basic_example.vcxproj b/1ea38bcbf131bd9f/fbsource/third-party/semver/basic_example.vcxproj
index b439f2e..0b79296 100644
--- a/1ea38bcbf131bd9f/fbsource/third-party/semver/basic_example.vcxproj
+++ b/1ea38bcbf131bd9f/fbsource/third-party/semver/basic_example.vcxproj
@@ -40,7 +40,7 @@
<ItemDefinitionGroup>
<ClCompile Label="CompilerSettings">
- <AdditionalIncludeDirectories>$(RepoRoot)\third-party\semver\include;$(RepoRoot)\third-party\toolchains\visual_studio\14.39.33519\VC\Tools\MSVC\14.39.33519\include;$(RepoRoot)\third-party\toolchains\visual_studio\14.39.33519\VC\Tools\MSVC\14.39.33519\atlmfc\include;$(RepoRoot)\third-party\toolchains\visual_studio\14.39.33519\VC\Auxiliary\VS\include;$(RepoRoot)\third-party\toolchains\windows10sdk\10.0.22000.0\Include\10.0.22000.0\km;$(RepoRoot)\third-party\toolchains\windows10sdk\10.0.22000.0\Include\10.0.22000.0\shared;$(RepoRoot)\third-party\toolchains\windows10sdk\10.0.22000.0\Include
@autozimu
autozimu / ffilib.py
Last active August 29, 2015 14:04
Compile C to shared library and load it using ffi
#!/usr/bin/env python
"""
Quickly open an dylib connection. Helpful for testing and exploring.
"""
import os, sys
import glob2
# recursive glob, which is builtin function in python3
import subprocess
from cffi import FFI