由于powershell 以文本的形式处理了所有管道的输入和输出,因此当数据中有文本编码不可识别的字节的时候会丢失数据,而windows1252可以将0~255任何字节值与字符匹配,基本上可以做到无损转换。
无法加载文件 C:\111.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。 + CategoryInfo : SecurityError: (: ) [],ParentContainsErrorRecordException + FullyQualifiedErrorId : UnauthorizedAccess
从这里下载:https://github.com/microsoft/DirectX-Graphics-Samples 1 cl.exe /D "UNICODE" /D "_UNICODE" *.cpp /EHsc -I C:\Users\54930\Downloads\DirectX-Graphics-Samples-master\Samples\Desktop\D3D12nBodyGravity\src\WinPixEventRuntime.1.0.161208001\Include\WinPixEventRuntime dxgi.lib d3d12.lib …
原因:golang版本太旧,不支持这个语法,往往是使用apt安装golang的结果 解决方法:去官网上下载golang ,版本至少1.19以后。 1 2 3 apt remove golang-go wget https://go.dev/dl/go1.19.3.linux-amd64.tar.gz rm -rf /usr/local/go && tar -C /usr/local -xzf go1.19.3.linux-amd64.tar.gz
问题: $ ping www.baidu.com ping: cannot resolve www.baidu.com : Host name lookup failure 初学者可能会去/etc/resolv.conf,但这个实际上是由resolconf生成的,而resolvconf是由local-unbound-setup生成的,所以更好的解决方式如下解决:
把node_modules/puppeteer/lib/cjs/puppeteer/node/Launcher.js里面的 1 2 3 if (os.arch() === 'arm64') { chromeExecutable = '/usr/bin/chromium-browser'; } 修改为:
1 2 brew install chromium xattr -cr /Applications/Chromium.app 在~/.zshrc里写 1 2 export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true export PUPPETEER_EXECUTABLE_PATH=`which chromium` 重启终端安装 参考:https://linguinecode.com/post/how-to-fix-m1-mac-puppeteer-chromium-arm64-bug
原因:linux万物皆文件的哲学理念,输入也是一种文件。 进入/data/local/tmp/ 然后执行命令cat /dev/input/event1> exp.bin 。然后app点击几次,按ctrl+c结束之前的命令得到exp.bin,adb pull下来之后叠加 ,越大越好。然后adb push exp.bin /data/local/tmp,之后上传并运行以下脚本: