I hereby claim:
- I am Naville on github.
- I am navillezhang (https://keybase.io/navillezhang) on keybase.
- I have a public key whose fingerprint is 2DD3 AF5E F257 5771 65BD 3F09 BCDB 9630 EAB4 7648
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import plistlib | |
import os | |
PATH=os.path.dirname(os.path.abspath(__file__))+"/Info.plist" | |
x=plistlib.readPlist(PATH) | |
x['NSAppTransportSecurity']=dict() | |
x['NSAppTransportSecurity']['NSAllowsArbitraryLoads']=True | |
plistlib.writePlist(x,PATH) |
''' | |
Break on Objective-C 's method using its address' | |
''' | |
import shlex | |
import lldb | |
import re | |
def breakonmethod(debugger, command, exe_ctx,result, internal_dict): | |
args=shlex.split(command) | |
Class=args[0] | |
Method=args[1] |
This is constructed with multiple tutorials online as well as opencv's issues
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=~/Development/opencv_contrib/modules -DPYTHON2_EXECUTABLE=$(which python2) -DPYTHON2_INCLUDE_DIR=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") -DPYTHON2_LIBRARY=$(python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))") -DPYTHON2_PACKAGES_PATH=$(python -c "import site; print(site.getsitepackages()[-1])") -DPYTHON3_EXECUTABLE=$(which python3) -DPYTHON3_INCLUDE_DIR=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") -DPYTHON3_LIBRARY=$(python3 -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))") -DPYTHON3_PACKAGES_PATH=$(python3 -c "import site; print(site.getsitepackages()[-1])") -DBUILD_opencv_python2=on -DBUILD_opencv_python3=on -DPYTHON_LIBRARY=$(python3 -c "import dist