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`);
bash删除超过30天的文件
脱离实际行动的信仰是死的。——列夫·托尔斯泰 分享一个小技巧,bash删除超过30天的文件 1find /xxx/xxx -type f -mtime +30 -delete
homebrew
适当的发挥自己的长处,具体地纠正自己的短处。——周恩来 https://brew.sh/index_zh-cn 我们复制中间的命令,执行安装 1/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 提示 1curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 18 ms: Couldn't connect to server 配置终端使用代理: 1234# 配置代理export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 sockets_proxy=socks5://127.0.0.1:7890# 重启或执行命令取消配置unset https_proxy http_proxy sockets_proxy 没有代理的去这个网站看...
ishot
人是要有帮助的。荷花虽好,也要绿叶扶持。一个篱笆打三个桩,一个好汉要有三个帮。——毛泽东 mac上截图可以使用ishot 非常好用
