{"id":24915415,"url":"https://github.com/simdsoft/notes","last_synced_at":"2025-09-03T12:39:02.117Z","repository":{"id":87849845,"uuid":"194778690","full_name":"simdsoft/notes","owner":"simdsoft","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-26T16:03:05.000Z","size":194,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-26T17:19:26.977Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://global.simdsoft.com/notes","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simdsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-07-02T03:05:24.000Z","updated_at":"2025-04-26T16:03:08.000Z","dependencies_parsed_at":"2025-02-20T16:23:05.813Z","dependency_job_id":"99b4fe8f-f257-487e-84b0-f4ef5c8dbfd1","html_url":"https://github.com/simdsoft/notes","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/simdsoft/notes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simdsoft%2Fnotes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simdsoft%2Fnotes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simdsoft%2Fnotes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simdsoft%2Fnotes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simdsoft","download_url":"https://codeload.github.com/simdsoft/notes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simdsoft%2Fnotes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273445404,"owners_count":25107149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-02T07:17:40.134Z","updated_at":"2025-09-03T12:39:02.092Z","avatar_url":"https://github.com/simdsoft.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# notes\n\n## uninsatll old kernrl\n\n卸载 Ubuntu 的旧版本内核可以释放磁盘空间并优化系统性能。以下是几种常见方法：\n\n1. **自动卸载未使用的内核**：\n   - 打开终端，运行以下命令查看已安装的内核列表：\n     ```bash\n     dpkg --list | grep linux-image\n     ```\n   - 然后运行以下命令自动卸载未使用的内核：\n     ```bash\n     sudo apt autoremove --purge\n     ```\n\n2. **手动删除特定内核**：\n   - 首先运行以下命令查看当前正在使用的内核版本：\n     ```bash\n     uname -r\n     ```\n   - 确保不要删除当前使用的内核。接着运行以下命令列出所有已安装的内核：\n     ```bash\n     dpkg --list | grep linux-image\n     ```\n   - 使用以下命令删除指定版本的内核（替换 `x.x.x-x` 为实际版本号）：\n     ```bash\n     sudo apt purge linux-image-x.x.x-x-generic\n     ```\n   - 删除后，更新 GRUB 引导加载程序：\n     ```bash\n     sudo update-grub\n     ```\n   - 最后，重新启动系统。\n\n3. **清理残留的配置文件**：\n   - 使用以下命令清除所有状态为 `rc` 的包：\n     ```bash\n     sudo dpkg --purge $(dpkg -l | awk '/^rc/{print $2}')\n     ```\n\n在操作之前，请备份重要数据，并保留至少一个旧版本内核以防万一。如果需要更详细的指导，可以参考[这里](https://bing.com/search?q=ubuntu+%e5%a6%82%e4%bd%95%e5%8d%b8%e8%bd%bd%e6%97%a7%e7%89%88%e6%9c%ac%e5%86%85%e6%a0%b8)或[这里](http://www.linuxrtm.com/c/22291.html)。\n\n希望这些方法对你有所帮助！如果有其他问题，随时告诉我。 😊\n\n## adb list package\n\n```pwsh\nadb shell pm list packages | findstr \"xxx\"\nadb shell pm path com.xxx\nadb pull xxxx ./\n```\n\n## adb connect to MuMu emulator\n\n`adb connect 127.0.0.1:7555`\n\n## Force switch Windows 11 insider to Release Preview\n\n1. Ensure go back to release preview build\n\nMethd1:  \n按Win+R输入regedit打开注册表  \n\n定位路径：HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\WindowsSelfHost\\UI\\Selection  \n\n修改UIBranch值为ReleasePreview  \n\n修改ContentType值为Mainline  \n\n修改Ring和UIRing值为Retail  \n\n定位路径：HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\WindowsSelfHost\\Applicability  \n\n修改BranchName值为ReleasePreview  \n\n修改ContentType值为Mainline  \n\n修改Ring值为Retail  \n\n重启系统后检查设置-更新-Insider Program是否变为Release Preview  \n\nMethod2. https://github.com/abbodi1406/offlineinsiderenroll  \n\n\n## install vs2022 specific version\n\n1. Locate the particular version in the Microsoft Update Catalog and download the installer.\n2. Extract ChannelManifest.json from the installer. Should be about 90 KiB.\n3. Upload it to a web server so that you have a URI it could be downloaded from, say https://example.org/ChannelManifest.json.\n4. Go to C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer and open the command line there.\n5. Run setup update --channelId VisualStudio.17.Release --productId Microsoft.VisualStudio.Product.Community --channelURI \"https://example.org/ChannelManifest.json\". Feel free to add other parameters.\n\n## install xcode manually\n\n1. visit: https://developer.apple.com/download/all/\n2. search `xcode 14.2`\n3. click .xip to download\n\n```\n# extract it\ncd ~/Downloads/\nbrew install unxip\nunxip ~/Downloads/Xcode_14.2.xip /Applications/Xcode_14.2.app\n# xip -x ~/Downloads/Xcode_14.2.xip\n# mv Xcode.app /Applications/Xcode_14.2.app\nsudo xcode-select -switch /Applications/Xcode_14.2.app\n```\n\n## 通过wsl2访问Linux物理磁盘\nhttps://devblogs.microsoft.com/commandline/access-linux-filesystems-in-windows-and-wsl-2/\n\n## ubuntu nvdia driver\n\n命令行安装ok\nhttps://blog.csdn.net/qq_34972053/article/details/127689332\n\nchrome安装\n\nvscode安装\n\n缺x11\n\n## centos6.10 install gcc5\n1. Add repo (important)\n```sh\nvim /etc/yum.repos.d/devtools-4.repo\n# input follow content\n[hhorak-devtoolset-4-rebuild-bootstrap]\nname=Copr repo for devtoolset-4-rebuild-bootstrap owned by hhorak\nbaseurl=https://copr-be.cloud.fedoraproject.org/results/hhorak/devtoolset-4-rebuild-bootstrap/epel-6-$basearch/\ntype=rpm-md\nskip_if_unavailable=True\ngpgcheck=1\ngpgkey=https://copr-be.cloud.fedoraproject.org/results/hhorak/devtoolset-4-rebuild-bootstrap/pubkey.gpg\nrepo_gpgcheck=0\nenabled=1\nenabled_metadata=1\n```\n2. install\n```\n# install scl\nyum -y install centos-release-scl\n# install gcc-5 from devtoolset-4\nyum -y install devtoolset-4-gcc devtoolset-4-gcc-c++ devtoolset-4-binutils\n# enable temporary\nscl enable devtoolset-4 bash\ngcc -v\nUsing built-in specs.\nCOLLECT_GCC=gcc\nCOLLECT_LTO_WRAPPER=/opt/rh/devtoolset-4/root/usr/libexec/gcc/x86_64-redhat-linux/5.2.1/lto-wrapper\nTarget: x86_64-redhat-linux\nConfigured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-4/root/usr --mandir=/opt/rh/devtoolset-4/root/usr/share/man --infodir=/opt/rh/devtoolset-4/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-plugin --with-linker-hash-style=gnu --enable-initfini-array --disable-libgcj --with-default-libstdcxx-abi=gcc4-compatible --with-isl=/builddir/build/BUILD/gcc-5.2.1-20150902/obj-x86_64-redhat-linux/isl-install --enable-libmpx --with-mpc=/builddir/build/BUILD/gcc-5.2.1-20150902/obj-x86_64-redhat-linux/mpc-install --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux\nThread model: posix\ngcc version 5.2.1 20150902 (Red Hat 5.2.1-2) (GCC)\n```\n2. set gcc-5 as default\n```sh\necho \"source /opt/rh/devtoolset-4/enable\" \u003e\u003e/etc/profile\n```\n\n## mac java\n```sh\nvim ~/.zshrc\nexport JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home\nexport CLASSPAHT=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar\nexport PATH=$JAVA_HOME/bin:$PATH\nsource ~/.zshrc\n```\n\n## git push\n```sh\ngit push origin --tags -f\n```\n\n## gsxt\nhttp://www.gsxt.gov.cn/\n\n## jar recompress\n```sh\ncd xxx\njar -xf xxx.jar\nmv xxx.jar ../\njar -cvfm xxx.jar META-INF/MANIFEST.MF  ./\n```\n\n## clang arm predefininations\n- clang -arch arm64 -E -dM - \u003c /dev/null | grep arm\n```cpp\n#define __arm64 1\n#define __arm64__ 1\n```\n\n## python mirrors\n* http://npm.taobao.org/mirrors/python\n\n## centos7 install gitea\n```\nadduser -r -s /bin/bash -c 'Git Version Control' -U -m git\n```\n\n## ios debug devices\nhttps://www.jianshu.com/p/8c99cb119bb3\n\n## Upgrade brew with mirrors\nInstall: https://gitee.com/simdsoft/brew-install  \nUpdate: modify /usr/local/Homebrew/Library/Homebrew/install.sh  \nchange homebrew-core repo to https://gitee.com/simdsoft/homebrew-core  \nhttps://www.jianshu.com/p/8a2ac505ff3e  \nhttps://www.jianshu.com/p/62f1b963baa6  \n\n## Dump cmake builtin macros\n```cmake\nget_cmake_property(_variableNames VARIABLES)\nforeach (_variableName ${_variableNames})\n  message(STATUS \"${_variableName}=${${_variableName}}\")\nendforeach()\n```\n\n## Get AAssetManager by ndk\nhttps://stackoverflow.com/questions/58980171/using-aassetmanager-fromjava-within-plugin-not-directly-called-from-java-vm-cal\n\n## Gets expand/collapse icon size of TreeView\n```cpp\nauto themeData = OpenThemeData(m_wndTreeView.GetSafeHwnd(), VSCLASS_TREEVIEW);\nSIZE tvButtonSize = { 0 };\nGetThemePartSize(themeData, NULL, TVP_GLYPH, GLPS_OPENED, NULL, TS_DRAW, \u0026tvButtonSize);\nCloseThemeData(themeData);\n```\n\n## vs2019 cl.exe optimize options\nhttps://docs.microsoft.com/en-us/cpp/build/reference/o1-o2-minimize-size-maximize-speed?view=vs-2019\n\n## Apple cert profile cache directory\n```~/Library/MobileDevice/Provisioning Profiles```\n\n## Create Visual Studio 2022 offline installer\nFor C++ desktop development, run:\n```bat\nvs_community.exe --layout D:\\softwares\\2022 --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --lang en-US\n```\nFor .Net \u0026 C++ desktop development, run:\n```bat\nvs_community.exe --layout D:\\softwares\\2022 --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Workload.ManagedDesktop --includeRecommended  --lang en-US\n```\n\n## build apk, config noCompress file type at app/build.gradle\n```gradle\nandroid {\n    aaptOptions {\n       noCompress 'mp3','ogg','wav','mp4','ttf','ttc'\n    }\n}\n```\n\n## wampserver 3.x\n### Access form other computer on the local area network\n1. Change http.conf ```Require local``` to ```Require all granted```\n1. Change extra/http-vhosts.conf ```Require local``` to ```Require all granted```\n2. Check firewall strategy, ensure the httpd.exe in allow list.\n\n## Build openal-soft dependencies for android platform\n### OS: Ubuntu 18.04.3 or install it with VMWare\n\n### install dep-tools\n```sh\napt-get update\napt-get install gcc-multilib\napt-get install autoconf automake cmake libtool git\n```\n\n### make-standalone-toolchain\nprepare: ```cp /usr/bin/python3.6 /usr/bin/python```  \n```sh\n\"$ANDROID_NDK/build/tools/make-standalone-toolchain.sh\" --arch=\"arm\" --platform=\"14\" --stl=gnustl --install-dir=\"/opt/arm-standalone-toolchain\" --verbose\n\"$ANDROID_NDK/build/tools/make-standalone-toolchain.sh\" --arch=\"arm64\" --platform=\"21\" --stl=gnustl --install-dir=\"/opt/arm64-standalone-toolchain\"  --verbose\n```\n\n### Add standalone toolchain's bin directory to PATH\n```sh\nexport PATH=/opt/arm-standalone-toolchain/bin:$PATH  \nexport PATH=/opt/arm64-standalone-toolchain/bin:$PATH\n```\n\n### openal-soft  \n```sh\ngit clone https://github.com/halx99/openal-soft\ngit checkout v1.19-aspec\nexport CMAKE_FIND_ROOT_PATH=/opt/arm-standalone-toolchain\nexport CMAKE_FIND_ROOT_PATH=/opt/arm64-standalone-toolchain\ncd build\n# if api-level is 9, remove -DHAVE_LOG2F=1\ncmake .. -DCMAKE_TOOLCHAIN_FILE=../XCompile-Android.txt -DHOST=arm-linux-androideabi -DCMAKE_C_FLAGS=\"-mfloat-abi=softfp -mfpu=neon\" -DCMAKE_BUILD_TYPE=Release -DHAVE_LOG2F=1\ncmake .. -DCMAKE_TOOLCHAIN_FILE=../XCompile-Android.txt -DHOST=aarch64-linux-android -DCMAKE_BUILD_TYPE=Release\n```  \n\nCMAKE_BUILD_TYPE options: Debug Release RelWithDebInfo MinSizeRel\n\n### mpg123\ndownload: http://www.mpg123.de/  \n```sh\ncurl http://www.mpg123.de/download/mpg123-1.25.13.tar.bz2 --output ./mpg123-1.25.13.tar.bz2\n./configure --host=arm-linux-androideabi CC=arm-linux-androideabi-gcc --with-cpu=neon\n./configure --host=aarch64-linux-android CC=aarch64-linux-android-gcc --with-cpu=neon64\n```  \nfor non-win32 platforms, you should copy mpg123.h from ```src/libmpg123/mpg123.h``` after configure finished.\n\n### libogg-1.3.3:\n```sh\n./configure --host=arm-linux-androideabi CC=arm-linux-androideabi-gcc\n./configure --host=aarch64-linux-android CC=aarch64-linux-android-gcc\n```\n### libogg-1.3.4 (require android-cmake: https://github.com/taka-no-me/android-cmake)\n```sh\nmkdir build_arm64\ncmake .. -DCMAKE_TOOLCHAIN_FILE=../../android-cmake/android.toolchain.cmake -DANDROID_NDK=/usr/local/src/android-ndk-r14b -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI=\"arm64-v8a\" ANDROID_NATIVE_API_LEVEL=android-21 .. -DCMAKE_MAKE_PROGRAM=/opt/arm64-standalone-toolchain/bin/make\ncmake -DCMAKE_TOOLCHAIN_FILE=../../android-cmake/android.toolchain.cmake -DANDROID_NDK=/usr/local/src/android-ndk-r14b -DCMAKE_BUILD_TYPE=Release -DANDROID_ABI=\"arm64-v8a\" -DCMAKE_MAKE_PROGRAM=/usr/local/src/android-ndk-r14b/prebuilt/linux-x86_64/bin/make\n```\n\n### libvorbis-1.3.6 with libogg-1.3.3: \n```sh\n./configure --host=arm-linux-androideabi CC=arm-linux-androideabi-gcc --with-ogg-includes=/usr/local/src/libogg-1.3.3/include/ --with-ogg-libraries=/usr/local/src/libogg-1.3.3/src/.libs/\n./configure --host=aarch64-linux-android CC=aarch64-linux-android-gcc --with-ogg-includes=/usr/local/src/libogg-1.3.3/include/ --with-ogg-libraries=/usr/local/src/libogg-1.3.3/src/.libs/\n```\n\n### libvorbis-1.3.6 with libogg-1.3.4: \n```sh\n./configure --host=arm-linux-androideabi CC=arm-linux-androideabi-gcc --with-ogg-includes=/usr/local/src/libogg-1.3.4/include/ --with-ogg-libraries=/usr/local/src/libogg-1.3.4/src/.libs/\n./configure --host=aarch64-linux-android CC=aarch64-linux-android-gcc --with-ogg-includes=/usr/local/src/libogg-1.3.4/include/ --with-ogg-libraries=/usr/local/src/libogg-1.3.4/build_arm64\n```\n\n### strip symbols\nremove static library debug symbol: ```arm-linux-androideabi-strip -g -S -d --strip-debug libogg.a -o libogg.a.s```  \nremove dynamic library debug symbol: ```arm-linux-androideabi-strip libopenal.so -o libopenal.so.s```  \n  \narm64-v8a: use **aarch64-linux-android-strip**\n\n\n## readthedocs dev\n1. Install [Python-3.7.3](https://www.python.org/ftp/python/3.7.3/python-3.7.3-amd64.exe)\n2. Install Python Extensions: sphinx, sphinx_rtd_theme, sphinx_tabs: ```pip install sphinx sphinx_rtd_theme sphinx_tabs``` for vscode rst preview.\nFor more detail, see: https://docs.restructuredtext.net/articles/prerequisites.html\n3. Install [Microsoft VS Code](https://code.visualstudio.com/)\n4. Install Microsoft VS Code extension: reStructedText, just search ```rst```\n\n## Use google angle GLES-2.0 in cocos2d-x\n1. Build angle latest source from google\n2. Copy libGLESv2.dll, libEGL.dll to your game directory\n3. Use glad to generate with OpenGL-2.0 GLES-2.0, and choose all extension\n4. Modify cocos2d-x sources to use glad, pitfall: ```glPolygonMode```, not present in GLES-2.0\n5. Modify GLProgram.cpp set ```headersDef``` same with ANDROID_PLATFORM  \ngclient error solution:  \nFor Chinese system language users:  \n在 控制面板-区域-更改系统区域设置 中  \n勾选 Beta版：使用 Unicode UTF=8 提供全球语言支持(U) 选项  \npython ImportError: No module named win32file:  \npython -m pip install pywin32  \n\n## iOS xcodebuild export, xxx is not an 'iOS App Store' profile.\nAdd thinning=none to XXXExportOptions.plist\n\n## Build openal-soft for ios platform\n### xcode11 + cmake-3.17.3 works well\n### devenv setup\n1. Install brew:\n```/usr/bin/ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"```  \n2. Install tools:\n```\nbrew update\nbrew install git\nbrew install cmake\nbrew install autoconf\nbrew install automake\nbrew install libtool\n```\n3. Clone ios-cmake from github: https://github.com/leetal/ios-cmake\n4. The solution of CMake Error: iphoneos is not an iOS SDK:  \nimportant: ```sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer``` . \nsee also: https://github.com/leetal/ios-cmake/issues/52  \nCMake Gen ios xcodeproject with default cmake toolchain:\n```cmake .. -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos -DCMAKE_C_COMPILER=/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -DCMAKE_CXX_COMPILER=/Applications/Xcode.app/Contents/Developer/usr/bin/g++```\n\n5. openal: https://github.com/kcat/openal-soft\n* Gen with custom ios-cmake toolchain\n```sh\ncmake -GXcode .. -DCMAKE_TOOLCHAIN_FILE=../cmake/ios.toolchain.cmake -DPLATFORM=OS -DCMAKE_CXX_EXTENSIONS=OFF -DALSOFT_REQUIRE_COREAUDIO=ON  -DALSOFT_EMBED_HRTF_DATA=YES -DLIBTYPE=STATIC -DALSOFT_UTILS=OFF -DALSOFT_EXAMPLES=OFF -DCMAKE_CXX_EXTENSIONS=OFF -DALSOFT_INSTALL=OFF -DALSOFT_OSX_FRAMEWORK=ON\ncmake -GXcode .. -DCMAKE_TOOLCHAIN_FILE=../cmake/ios.toolchain.cmake -DPLATFORM=SIMULATOR64 -DCMAKE_CXX_EXTENSIONS=OFF -DALSOFT_REQUIRE_COREAUDIO=ON  -DALSOFT_EMBED_HRTF_DATA=YES -DLIBTYPE=STATIC -DALSOFT_UTILS=OFF -DALSOFT_EXAMPLES=OFF -DCMAKE_CXX_EXTENSIONS=OFF -DALSOFT_INSTALL=OFF -DALSOFT_OSX_FRAMEWORK=ON\n```\n* Gen combine .a to 1 flat\n```sh\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static /Users/${USER}/dev/openal-soft/build/OpenAL.build/Release-iphoneos/OpenAL.build/Objects-normal/armv7/libopenal.a /Users/${USER}/dev/openal-soft/build/OpenAL.build/Release-iphoneos/OpenAL.build/Objects-normal/arm64/libopenal.a /Users/${USER}/dev/openal-soft/build_x64/Release-iphonesimulator/libopenal.a -o /Users/${USER}/dev/openal-soft/build/Release-iphoneos/libopenal.a\n```\n\n* Combine dylib to 1 flat\n```sh\nlipo -create \u003cinput files\u003e -output \u003coutput_file\u003e\n```\n\n* Gen with cmake official(**device doesn't work**)\n```sh\ncmake .. -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator13.6 -DLIBTYPE=STATIC -DALSOFT_UTILS=OFF -DALSOFT_EXAMPLES=OFF -DALSOFT_EMBED_HRTF_DATA=YES -DALSOFT_TESTS=OFF -DALSOFT_INSTALL=OFF -DALSOFT_OSX_FRAMEWORK=ON\n```\n\n### ogg\n```sh\ncmake . -B build_ios -G Xcode -DCMAKE_TOOLCHAIN_FILE=../ios.mini.cmake \"-DCMAKE_OSX_ARCHITECTURES=armv7;arm64\"\ncmake --build build_ios --config Release --target ogg\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static ./build/libogg.build/Release-iphoneos/ogg.build/Objects-normal/armv7/libogg.a ./build_x86/Release-iphonesimulator/libogg.a ./build_x64/Release-iphonesimulator/libogg.a ./build/libogg.build/Release-iphoneos/ogg.build/Objects-normal/arm64/libogg.a -o ./lib/libogg.a\n```\n\n### vorbis\n```sh\ncmake . -B build_ios -G Xcode  -DCMAKE_TOOLCHAIN_FILE=../ios.mini.cmake \"-DCMAKE_OSX_ARCHITECTURES=armv7;arm64\" -DOGG_INCLUDE_DIR=/Users/halx99/dev/ogg/include -DOGG_LIBRARY=/Users/halx99/dev/ogg/lib/ -DPLATFORM=OS\ncmake --build build_ios --config Release --target vorbis vorbisfile\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static ./build/lib/vorbis.build/Release-iphoneos/vorbis.build/Objects-normal/armv7/libvorbis.a ./build_x86/lib/Release-iphonesimulator/libvorbis.a ./build_x64/lib/Release-iphonesimulator/libvorbis.a ./build/lib/vorbis.build/Release-iphoneos/vorbis.build/Objects-normal/arm64/libvorbis.a -o ./libs/libvorbis.a\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static ./build/lib/vorbis.build/Release-iphoneos/vorbisfile.build/Objects-normal/armv7/libvorbisfile.a ./build_x86/lib/Release-iphonesimulator/libvorbisfile.a ./build_x64/lib/Release-iphonesimulator/libvorbisfile.a ./build/lib/vorbis.build/Release-iphoneos/vorbisfile.build/Objects-normal/arm64/libvorbisfile.a -o ./libs/libvorbisfile.a\n```\n\n### check arch of .a\n```lipo -info libogg.a```\n\n## Use Visual Studio find chinese charactors regex expression\n```sh\n.*[\\u4e00-\\u9fa5]{1,}.*\n```\n\n## Android Studio maven private server\n### alternative solution\n* nexus: https://www.sonatype.com/nexus-repository-oss\n* jfrog: https://jfrog.com/open-source\n#### nexus\n ```nexus /install```  \n ```net start nexus```  \n package url format: http://127.0.0.1:9910/repository/maven-public/com/android/tools/lint/lint/26.2.1/lint-26.2.1.pom\n### official\n* google(): https://dl.google.com/dl/android/maven2/  \n* jcenter(): https://jcenter.bintray.com/  \n* mavenCentral(): https://repo.maven.apache.org/maven2/ or https://repo1.maven.org/maven2/ or http://central.maven.org/maven2/\n### aliyun: \n* google(): http://maven.aliyun.com/nexus/content/repositories/google \n* jcenter(): http://maven.aliyun.com/nexus/content/repositories/jcenter\n\n### disable domain at hosts: repo.maven.apache.org 151.101.52.215\n\n### gradle:\nhttps://services.gradle.org/distributions/\n\n\n## wireshak cap\nUse WinPcap 4.1.3\n\n## global mobile games website:\nhttps://apkpure.com/\n\n## show vctools version option\n-Bv\n\n## git update submodule url\ngit submodule sync\n\n## git remove submodule\ngit rm --cached {submodule_path}\n\n## Chrome Latest Offline Download\n[ChromeStandaloneSetup64.exe](https://www.google.cn/chrome/?standalone=1\u0026platform=win64)\n\n## Unity3D Paths\n### Android\nstreamingAssetsPath: jar:file://${APK_PATH}!assets  \npersistentDataPath: external storage path, Android/data/${PackageName}/files  \ndataPath: ${APK_PATH}  \n\n## Install latest cmake on non-win32 platform\n```sh\napt install libssl-dev\nwget https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2.tar.gz -o ./cmake-3.16.2.tar.gz \ntar -xvf cmake-3.16.2.tar.gz\ncd cmake-3.16.2\n./configure\nmake\nmake install\n```\n\n## Upgrade ubuntu\n```sh\napt update \u0026\u0026 apt dist-upgrade\napt-get install screen\nscreen # Avoid ssh connection lost\ndo-release-upgrade -d\n```\n\n## php xdebug\n* Open phpForApache.ini\n* Edit [xdebug] section\n ```ini\nzend_extension=\"path/to/php/zend_ext/php_xdebug-2.8.0-7.3-vc15-x86_64.dll\"\nxdebug.remote_enable = 1\nxdebug.remote_autostart = 1\nxdebug.remote_handler=dbgp\nxdebug.remote_mode=req\nxdebug.romote_host=localhost\nxdebug.remote_port=9000\n ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimdsoft%2Fnotes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimdsoft%2Fnotes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimdsoft%2Fnotes/lists"}