Categories
Uncategorized

windows 查看端口占用

wingit netstat -ano | findstr “:1080”

Categories
Uncategorized

ng is not recognized as an internal or external command

使用 npm run ng serve 即可执行

Categories
Uncategorized

WordPress 安装主题,安装插件按钮消失

如果你是多站点

尝试从 “我的站点- 管理网络” 中进入

https://wordpress.org/support/topic/missing-my-add-new-plugin-button/

Categories
Uncategorized

Flarum 插件推荐

安装插件有试过失败的,总是失败,推荐使用 docker 镜像安装,相对稳定一点

https://www.ikxin.com/flarum-cv-plugin-introduction.html

Categories
Uncategorized

Docker 无法进入 bash

有些镜像本身不存在 bash,这时候可能存在 sh

docker 进入容器

docker exec -it bbc60d84fb25 /bin/sh

docker exec -it bbc60d84fb25 /bin/bash

docker logs -f bbc60d84fb25

拷贝容器内文件到本机

docker exec -it bbc60d84fb25 /bin/cat /etc/php/php.ini > ./php.ini

Categories
Uncategorized

Jupyter

  • Enter : 转入编辑模式
  • Shift-Enter : 运行本单元,选中下个单元
  • Ctrl-Enter : 运行本单元
  • Alt-Enter : 运行本单元,在其下插入新单元

快捷键 https://blog.csdn.net/lawme/article/details/51034543

Categories
Uncategorized

Java -D 参数 Shell $@ $* 参数

"$@": wrappedProgram "one two    three" four five "six seven"
"$*": wrappedProgram "one two    three four five six seven"
                             ^^^^ These spaces are part of the first
                                  argument and are not changed.
$*:   wrappedProgram one two three four five six seven


https://stackoverflow.com/questions/9994295/what-does-mean-in-a-shell-script
https://blog.csdn.net/qq_39868448/article/details/82847360
Categories
Uncategorized

代码风格 Failed fast

在函数编写的时候,选择failed fast 风格个人感觉可以提高代码可读性

if( event.isSingleMode() ) return;
  saveTrade()
  saveEvent()
if( !event.isSingleMode() ) {
  saveTrade()
  saveEvent() 
}

Categories
Uncategorized

Ghost 博客安装出现错误 tar: /var/lib/ghost/content.orig: Cannot open: No such file or directory