捡屁笑的小站 https://jpsmile.com/
Davinci Resolve Studio 17.2 _达芬奇17.2 (Win&Mac&Linux)
https://jpsmile.com/davinci-resolve-studio-17/
作者: admin
批处理cmd 常规头-目录右键运行CMD
@REM ######################################################
@REM 可选默认使用utf-8
@REM chcp 65001
@REM ######################################################
@cls && echo off &&echo PAN:"%~d0" CD:"%~dp0" FILE:"%~f0"
@cd /d %~dp0 && echo CD:"%cd%"
@REM ######################################################
@REM echo 倒计时10秒后退出 && for /L %%i in (1 1 10) do set /p a=■<nul&ping /n 2 -w 100 127.0.0.1>nul
@REM ######################################################
windows 目录右键运行CMD
保存以下为 cmd.reg 文件然后双击导入
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd_here]
@="CMD"
"Icon"="cmd.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd_here\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_here]
@="CMD"
"Icon"="cmd.exe"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_here\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="CMDAdmin"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas]
@="CMDAdmin"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Drive\shell\runas]
@="CMDAdmin"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere]
@="在此处打开命令提示符"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere]
@="在此处打开命令窗口"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""
[HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere]
@="在此处打开命令窗口"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere]
@="在此处打开命令窗口"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""
Win超级小工具
Windows-Kernel-Explorer
https://github.com/AxtMueller/Windows-Kernel-Explorer
Sysinternals Utilities
https://docs.microsoft.com/zh-cn/sysinternals/downloads/
常用三项,
Autoruns,启动管理
Process Explorer,当前进程管理
TCPView,当前网络连接管理,
nirsoft
http://www.nirsoft.net/
多是些小工具
PHP 数据库组件 illuminate database
1. 安装 apnode , 确保 php 可执行
2. composer 安装组件
composer require illuminate/database "7.0" composer require illuminate/events "7.0" composer require illuminate/container "7.0"
指定7.0版本,php版本支持7.2
3. 新建index.php
use Illuminate\Database\Capsule\Manager as DB; use Illuminate\Events\Dispatcher; use Illuminate\Container\Container; require 'vendor/autoload.php'; $capsule = new DB; $capsule->addConnection([ 'driver' => 'mysql', 'host' => 'localhost', 'database' => 'test', 'username' => 'root', 'password' => '123456', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', ]); $capsule->setEventDispatcher(new Dispatcher(new Container)); $capsule->setAsGlobal(); $capsule->bootEloquent(); $data = DB::table('user')->select('*')->get(); var_dump($data);
参考:
https://www.mogublog.net/post/2418.html
detectron2 window 快速安装
参考:
https://medium.com/@dgmaxime/how-to-easily-install-detectron2-on-windows-10-39186139101c
==1==
https://docs.conda.io/en/latest/miniconda.html
安装conda,设置镜像地址
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
pip config set global.trusted-host mirrors.aliyun.com
==2==
安装第三方模块
Install Cuda
Install Torch
pip install opencv-python
==3==
安装VS2019(VS2017)
==4==
https://github.com/DGMaxime/detectron2-windows.git
cd D:\apdata\test\detectron2-windows
“C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat”
set DISTUTILS_USE_SDK=1
python setup.py build develop
pip install -e .
==5==
https://pypi.org/project/pycocotools-windows/
pip install opencv-python
pip install numpy scipy pandas matplotlib scikit-learn
pip install cython
pip install pycocotools-windows
pip install Cython
pip install Pillow
pip install yacs
pip install termcolor
pip install cityscapesScripts
pip install tabulate
pip install tqdm
pip install lvis
pip install psutil
pip install fvcore
pip install pycocotools
caffe2 需要编译,
https://download.pytorch.org/whl/torch_stable.html
# CUDA 10.2
pip install torch==1.6.0 torchvision==0.7.0
# CUDA 10.1
pip install torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
# CUDA 9.2
pip install torch==1.6.0+cu92 torchvision==0.7.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html
# CPU only
pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip install torch==1.5.1+cu92 torchvision==0.6.1+cu92 -f https://download.pytorch.org/whl/torch_stable.html
pip install cv2 PIL pycocotools yacs termcolor cityscapesscripts tabulate tqdm scipy lvis psutil pkg_resources caffe2 onnx
“C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat”
python setup.py build develop
cd D:\apdata\test\detectron2-windows
set DISTUTILS_USE_SDK=1
python demo.py –config-file D:/apdata/test/detectron2-windows/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml –webcam –output outputs –opts MODEL.WEIGHTS ‘D:/apdata/test/detectron2-windows/demo/R-50.pkl’
python demo.py –config-file D:/apdata/test/detectron2-windows/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml –webcam –opts MODEL.WEIGHTS ‘D:/apdata/test/detectron2-windows/demo/R-50.pkl’
python C:/test/detectron2-windows/demo/demo.py –config-file C:/test/detectron2-windows/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml –webcam –opts MODEL.WEIGHTS ‘C:/test/detectron2-windows/demo/R-50.pkl’
https://pypi.org/project/pycocotools-windows/