MSBuildToolsPath is not specified for the ToolsVersion “14.0” defined at “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\TOolsVersions\14.0

磁盘空间红了,于是卸载了一些没用的东西,其中之一就是Vs 2015,结果卸载了之后悲剧了,Delphi无法进行编译了,提示上面的错误:MSBuildToolsPath is not specified for the ToolsVersion “14.0” defined at “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\TOolsVersions\14.0 .

Continue Reading

git 统计一段时间内提交的代码行数

代码:

 git log --author="obaby" --after="2019-08-04 00:00:01" --before="2019-08-10 12:00:00"
 --pretty=tformat: --numstat | grep -v 'static'  |
 gawk '{ add += $1 ; subs += $2 ; loc += $1 - $2 } END { printf "增加行数:%s 删除行数:%s 变化总行数:%s\n",add,subs,loc }'

上面的代码依赖于linux windows下运行可以使用cgywin 或者mobaxterm,https://mobaxterm.mobatek.net

MobaXterm is your ultimate toolbox for remote computing. In a single Windows application, it provides loads of functions that are tailored for programmers, webmasters, IT administrators and pretty much all users who need to handle their remote jobs in a more simple fashion.

MobaXterm provides all the important remote network tools (SSH, X11, RDP, VNC, FTP, MOSH, …) and Unix commands (bash, ls, cat, sed, grep, awk, rsync, …) to Windows desktop, in a single portable exe file which works out of the box.

There are many advantages of having an All-In-One network application for your remote tasks, e.g. when you use SSH to connect to a remote server, a graphical SFTP browser will automatically pop up in order to directly edit your remote files. Your remote applications will also display seamlessly on your Windows desktop using the embedded X server

Continue Reading