2021年2月6日星期六
2021年2月3日星期三
.net
$ dotnet new console -o myApp
欢迎使用 .NET 5.0!
---------------------
SDK 版本: 5.0.102
遥测
---------
.NET 工具会收集用法数据,帮助我们改善你的体验。它由 Microsoft 收集并与社区共享。你可通过使用喜欢的 shell 将 DOTNET_CLI_TELEMETRY_OPTOUT 环境变量设置为 "1" 或 "true" 来选择退出遥测。
阅读有关 .NET CLI 工具遥测的更多信息: https://aka.ms/dotnet-cli-telemetry
----------------
已安装 ASP.NET Core HTTPS 开发证书。
若要信任该证书,请运行 "dotnet dev-certs https --trust" (仅限 Windows 和 macOS)。
了解 HTTPS: https://aka.ms/dotnet-https
----------------
编写你的第一个应用: https://aka.ms/dotnet-hello-world
查找新增功能: https://aka.ms/dotnet-whats-new
浏览文档: https://aka.ms/dotnet-docs
在 GitHub 上报告问题和查找源: https://github.com/dotnet/core
使用 "dotnet --help" 查看可用命令或访问: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
Getting ready...
The template "Console Application" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on myApp/myApp.csproj...
正在确定要还原的项目…
已还原 /Users/xxx/Documents/dotnet/myApp/myApp.csproj (用时 84 ms)。
Restore succeeded.
2021年2月2日星期二
2021年1月29日星期五
ogrinfo SQL
C:\aka\只保留高路基>ogrinfo 水位比较.dbf -dialect SQLite -sql "SELECT id, Y_W_100 FROM \"水位比较\" limit 2"
INFO: Open of `水位比较.dbf'
using driver `ESRI Shapefile' successful.
Layer name: SELECT
Geometry: None
Feature Count: 2
Layer SRS WKT:
(unknown)
id: Integer (0.0)
Y_W_100: Real (0.0)
OGRFeature(SELECT):0
id (Integer) = 0
Y_W_100 (Real) = 0
OGRFeature(SELECT):1
id (Integer) = 1
Y_W_100 (Real) = 0
------------------------------------------------------------------------------------------
2021年1月23日星期六
unzip 中文文件名、中文密码
unzip -O cp936 -P "$(echo -n 中文密码 | iconv -f utf-8 -t gbk)" 文件名.zip
decompress-zip-with-given-encoding
zip-file-decompression-inflating-vs-extracting
unzipping a zip file with non-utf8 encoding by Python3
python unzip a password protected zip file