cheatsheets
公众的信任是一个有效的政府的基础。——肯尼迪 分享一个开源项目GitHub - rstacruz/cheatsheets: My cheatsheets 其作为一个备忘项目,包含一个主站,可以进行检索 https://devhints.io/ 很全很方便
idea查看测试历史
夫妻之争没有胜者,只能是两败俱伤——石川达三 方式很简单
迁移数据到备份表
对孩子的责任感是一切美德的基础。——西塞罗 昨晚写了个sql执行了一会儿去睡觉了,第二天发现还在执行 然后停止了下来,换另一种方式,将不需要删除的数据迁移到备份表,然后删除原表,再重命名回去 1234567CREATE TABLE mx_product_detail_bak LIKE mx_product_detail;INSERT INTO mx_product_detail_bakSELECT *FROM mx_product_detailWHERE type = 0;DROP TABLE mx_product_detail;RENAME TABLE mx_product_detail_bak TO mx_product_detail;
idea配置proxy
创造历史的人没时间去写历史——梅特涅 设置方式很简单 这里可以点击Check Connection进行测试
karabiner
不滥用聪明,正是聪明的表现。——佚名 分享一个mac的快捷键管理开源应用 GitHub - pqrs-org/Karabiner-Elements: Karabiner-Elements is a powerful utility for keyboard customization on macOS Sierra (10.12) or later. 然后是安装brew install --cask karabiner-elements 123456789101112achaodeMacBook-Pro:.m2 achao$ brew install --cask karabiner-elements==> Downloading https://github.com/pqrs-org/Karabiner-Elements/releases/download==> Downloading from https://objects.githubusercontent.com/github-production-rel###################...
mark-text开发环境搭建启动
没有目的,就做不成任何事情;目的渺小,就做不成任何大事——狄德罗 IDEA的安装就不多赘述了 123456789101112achaodeMacBook-Pro:~ achao$ brew install --cask intellij-idea==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/api/cask.jws.json#=#=# ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-cask/2b3de06Already downloaded: /Users/achao/Library/Caches/Homebrew/downloads/03208b267695d41517fe798d19f1a1d3f0ecc722ebac64499965e6529b228d...
brew安装mark-text和picgo-core并配置
在缺乏教养的人身上,勇敢就会成为粗暴,学识就会成为迂腐,机智就会成为逗趣,质朴就会成为粗鲁,温厚就会成为谄媚。——洛克 执行 1234567891011achaodeMacBook-Pro:~ achao$ brew install --cask mark-text==> CaveatsThe Apple Silicon (arm) version of mark-text is not signed, andwill display an error stating it is damaged and can't be opened.==> Downloading https://github.com/marktext/marktext/releases/download/v0.17.1/m==> Downloading from https://objects.githubusercontent.com/github-production-rel##################################################...
Maccy
与有权势的人交朋友是靠不住的。——费德鲁斯 mac上面使用剪贴板历史功能可以使用Maccy https://github.com/p0deje/Maccy 我们brew install maccy安装 1234567891011121314151617181920212223achaodeMacBook-Pro:~ achao$ brew install maccyHOMEBREW_BREW_GIT_REMOTE set: using https://mirrors.ustc.edu.cn/brew.git as the Homebrew/brew Git remote.remote: Enumerating objects: 55, done.remote: Counting objects: 100% (55/55), done.remote: Total 180 (delta 55), reused 55 (delta 55), pack-reused 125Receiving objects: 100% (180/180), 132.88 KiB | 2.11 Mi...
brew安装nvm、node及配置
邪恶进攻正直的心灵,从不来不是那么大张旗鼓的,它总是想法子来偷袭,总戴着某种诡辩的面具,还时常披着道德的外衣。——卢俊 用brew安装nvm 1brew install nvm 安装很慢,配置下镜像?.bash_profile 1234export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"export HOMEBREW_API_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles/api"export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles/bottles" 安装完毕后执行brew info nvm 12...
解决不能在mysql唯一索引使用函数问题
我们在伤害别人之前,要想到别人也会同样伤害我们。——达·芬奇 遇到不能在mysql唯一索引使用函数问题 可以使用虚拟列,例如下面的例子 1234# 添加虚拟列,为`date`字段格式化为月计算出来得到`month`字段ALTER TABLE `my_table` ADD COLUMN `month` VARCHAR(7) AS (DATE_FORMAT(`date`, '%Y-%m')) VIRTUAL;# 添加唯一索引到`month`和其他字段,组成联合唯一索引ALTER TABLE `my_table` ADD UNIQUE INDEX uk_date (`month`, `gmt_deleted`);
