Brew

brew使用国内源 1 2 3 4 5 6 7 8 9 10 11 12 cd "$(brew --repo)" git remote set-url origin https://mirrors.ustc.edu.cn/brew.git cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git cd "$(brew --repo)/Library/Taps/homebrew/homebrew-cask" git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile brew update

Fulltext

全文索引 原本是想利用全文索引解决简单的查询优化,但使用了之后发现一些问题。 配置问题 全文索引都会涉及到一个最小分词长度长度的配置; 1 2 3 4 5 6

Nvm

nvm是管理node工具,可以安装切换多版本node 1 2 3 4 5 6 7 8 9 #使用国内源安装node export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node #先卸载cnpm npm remove -g cnpm --registry=https://registry.npmmirror.com #安装最新的lt

记录一次复制hosts引发的问题

过程 由于更换电脑,当把以前windows的hosts文件复制到新电脑后。启动项目连接zookeeper时提示超时。 在网上一番搜索后,走上了歧

注册ip异常

启动的时候dubbo注册到一个未知的ip 1 [DUBBO] No spring extension (bean) named:module, try to find an extension (bean) of type org.apache.dubbo.config.ModuleConfig, dubbo version: 2.7.5, current host: 192.168.199.202 搜索一番都让修改dns,于是尝试修改了一下dns 61.139.2.69 暂时好

Scp Sftp Rysnc

scp、sftp、rsync 三者都可以上传文件,其中scp上传文件时可直接上传不需要进行交互,sftp需要进行交互,通过脚本上传时需要exp

shortcutKey

Mac 键盘快捷键 您可以按下某些组合键来实现通常需要鼠标、触控板或其他输入设备才能完成的操作。 要使用键盘快捷键,请按住一个或多个修饰键,然后按快捷

mysql重置密码

参照 https://blog.csdn.net/weixin_36511527/article/details/87865212 1、在[mysqld]中添加 1 2 #跳过权限 skip-grant-tables 2、重启mysql服务 service mysqld restart 3、用户登录 mysql -uroot -p (直接点击回车,密码为空) 选择数据库 use mysql; 下面

mysql性能测试

mysql性能测试 参照https://cloud.tencent.com/developer/article/1536046 通过我们看各大厂

k8s问题集

k8s证书过期 关于证书的官方说明文档https://kubernetes.io/docs/tasks/administer-cluster/

复制按钮引发的问题

简述 在做一个复制按钮时,初步以为只是复制以前的代码,但由于页面是大量的国际化code与翻译引发了一些转义问题。首页页面内容html源码是 1 2

Vs

vs code 单击文件是预览模式,窗口上的文件名是斜体,打开其它文件是会覆盖显示。再双击文件名则会正体显示,新开文件也不会覆盖 相关设置是 “workbench.editor.enablePreview”: true 显示方法列

Error

在linux中npm run build编译vue项目时大小写敏感 js向上取整 Math.ceil(5/3)

Vue复习

时隔九月再次上手Vue 注意项 不要在选项属性或回调上使用箭头函数,比如 created: () => console.log(this.a) 或 vm.$watch(‘a’, newValue => this.myMethod())。因为箭头函数并没有 th

saturn

job不执行 console和executor都起来了,但是没有执行对应的job作业,点击立即执行,日志打印msg=job run-at-once triggered, triggeredData:null 检查conso

DeleteImages

定时删除多余镜像 发版次数较多之后本地会产生很多镜像。之前都是人工删除,很是麻烦,所以写了一个定时任务删除来清除多余镜像 先写一个基础脚本del

Vi

dd删除当前行 yy复制 p粘贴 esc+:+/xxx 搜索xxx,n查找下一个

Sql

mysql update where 不能用子查询 eg: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 UPDATEpub_small_tool_50845485713523aSETa.newest=1WHEREa.type=1AND(a.shopId,a.itemId,a.buyerAccount,a.expireTime)IN(SELECTshopId,itemId,buyerAccount,MAX(expireTime)expireTimeFROMpub_small_tool_50845485713523WHEREtype=1GROUPBYshopId,itemId,buyerAccount) 改成右连接 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 UPDATEpub_small_tool_50845485713523aRIGHTJOIN(SELECTshopId,itemId,buyerAccount,MAX(expireTime)expireTimeFROMpub_small_tool_50845485713523WHEREtype=1GROUPBYshopId,itemId,buyerAccount)AON(A.shopId=a.shopIdANDA.itemId=a.itemIdANDA.buyerAccount=a.buyerAccountANDA.expireTime=a.expireTime)SETa.newest=1WHEREa.type=1; MySQL Expl

El

js中使用el表达式,在null判断时若只有'',其结果如图 若只有"",其结果如图 所以最好使用 var platAcceptJSON = ${platAcceptJSON == null ? ‘""’ : platAcceptJSON}; 或者 var