Netstat

win10查看端口使用情况 1. 察看所有已使用的端口 netstat -ano 2. 查看特定端口的使用 netstat -ano|findstr "443" 3. 查看占用端口的进程PID tasklist|findstr "7648"

December 28, 2018 · 1 min · Rick Cui

Git Commands

一、Git 常用命令 1、初始化本地仓库 适合远程仓库是空仓库 cd public git init git remote add blog https://github.com/874656645/rick 如果新建的仓库有东西,最好先克隆到本地,再向里面添加文件 git clone https://github.com/adityatelange/hugo-PaperMod.git 克隆含有子仓库的代码 git clone -b exampleSite --recursive https://github.com/adityatelange/hugo-PaperMod.git 克隆某一个分支 git clone -b exampleSite https://github.com/adityatelange/hugo-PaperMod.git 2、更新远程仓库代码到本地 git pull blog master 3、将变化提交到本地仓库 git commit -m "delete all files" git commit -am "update" 4、push推送到远程仓库 git push blog master 5、添加远程仓库别名和网址 git remote add blog https://github.com/874656645/rick 6、删除配置的远程仓库别名 git remote remove blog...

December 15, 2018 · 2 min · Rick Cui

Hugo Create a New Site by Hugo

使用 Hugo 创建静态网站 Hugo 官网 Hugo 中文网 网站皮肤 Step1:创建站点 进入到 E:/Hugo/Sites文件夹 hugo new site HugoLearning.com cd HugoLearning.com git init Step2:添加样式主题 在皮肤列表挑选一个心仪的皮肤,找到相关的 GitHub 地址,创建目录 themes,在 themes 目录里把皮肤 git clone 下来 git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke 编辑 config.toml 配置文件 最后一行添加 theme = "ananke" 或者在命令行执行 echo 'theme = "ananke"' >> config.toml Step3:添加markdown文件内容 hugo new posts/Hello-Hugo.md hugo new --kind post posts/1-Papermod-Theme-中文.md Note: post is a kind of archetypes( post.md ) Step4: 启动网站 hugo server -D...

December 14, 2018 · 1 min · Rick Cui

spatialite 随机数

1、随机数 SQL 脚本 update "CYBuildings2" set "imgIndex" = FLOOR(1 + (RANDOM()+9223372036854775808)/2.0/9223372036854775808 * 7);

1 min · Rick Cui