Skip to content

Instantly share code, notes, and snippets.

View huyaoyu's full-sized avatar
🎯
Focusing

Yaoyu Hu huyaoyu

🎯
Focusing
  • Carnegie Mellon University
  • Pittsburgh, PA, USA
View GitHub Profile
@humblehacker
humblehacker / make-opencv2-xcframework.md
Last active September 6, 2024 09:46
Make opencv2.xcframework for iOS arm64, and iOSSimulator arm64 & x86_64

I had some trouble attempting to build an XCFramework of OpenCV, but I finally got a successful build with the following steps:

  1. Clone the OpenCV repo:
    git clone [email protected]:opencv/opencv.git
    cd opencv
    
  2. Disable building with libjpeg-turbo[^1] by applying a patch:
    git apply path/to/opencv-5-28-50.patch
@daehahn
daehahn / wsl2-network.ps1
Last active October 19, 2024 16:26
WSL 2 TCP NETWORK FORWARDING
# WSL2 network port forwarding script v1
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell,
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter.
# written by Daehyuk Ahn, Aug-1-2020
# Display all portproxy information
If ($Args[0] -eq "list") {
netsh interface portproxy show v4tov4;
exit;
}