用AI赚第一桶💰低成本搭建一套AI赚钱工具,源码可二开。 广告
date: 2018-8-30 13:15:52 title: 我的开发环境 一直用 PE 重装系统, 所以这次 **重整** win 系统的时候, 同样对 PE 有着 **迷之自信**, 简单说一些细节: - 公司下载好了 win 镜像, 但是没有下载好 PE, 家里网速着实坑爹, **浪费时间之一** - 世面上 PE 鱼龙混杂, 有的甚至安装要花 10min+, 甚至出现长长的下载进度条 **浪费时间之二** 顺便一提这次折腾明白的 PE 的一些事儿: - PE 启动方式有多种, 新式的 UEFI 和老式(老式不重要, 忘了他) - 文件系统 FS 有多种, win 下默认是 NTFS, 是不能将 PE 安装为 UEFI 模式的 - BIOS 中可以在 boot 中设置硬盘模式, 新式的 UEFI 和老式(AHCI) - 硬盘的存储介质有多种, 机械硬盘 HD -> 固态硬盘 SSD -> 闪存, 而我的小米 Pro 只支持 UEFI 模式启动, 才可以在 PE 中识别本地硬盘 上面基本就构成了一个死循环, PE 无法安装为 UEFI 模式, 进入 PE 后无法识别本机硬盘, 换 PE, 继续无法安装为 UEFI 模式, **浪费时间之三** 这一套组合下来, 折腾到凌晨 2 点. 都这个点了, 突然灵机一动, **可以使用系统自动的重置功能呀**, 心理暗暗夸了自己一句 -- 真聪明. 但是转念一想, 一开始怎么就没想到了 -- 真蠢. # mac - 说一下刚上手 mac 的一些囧事, 首先是想要折腾 Navicat 破解版, 按照百度出来的结果删除了一个文件, Mac 无法进入系统, 而我在只 2 天折腾 Mac 的情况下, 选择了 **放弃**, **回归 win 怀抱**, **舒适区果然是存在的** - 打算重整旗鼓再战 Mac, 这次有了 win 的教训, 准备老老实实的使用系统自带功能, 然后按照百度来, 先格式化 HD, 然后使用联网装机(**浪费时间一**)的方式, 然后出现 **APFS 不支持 preboot**, 不死心多次重试(最开始以此没仔细看就关了, 第二次才记下报错信息, 之后的几次都是在 **挣扎**, **浪费时间二**), 最后百度发现只能通过外接启动盘, 于是 **找组织求救**(公司很多人用 Mac), 可以安心 **周一见** 了 chrome - 谷歌访问助手(就能访问 Google 了) - password 需要配合使用 iCloud - f12 -> cmd-S-p 命令面板 搜狗拼音 git + git desktop vscode + command: shell + sync setting idea toolbox docker desktop + aliyun下载文件 + docker 中文网源 iterm2 + fish + fish_config(~/.config/fish/fish_config) alfrd3 + workflow imageopti 无损优化图片 navicat [快捷键](https://blog.csdn.net/caoxiaohong1005/article/details/62883407) charles [视频教程](https://www.cnblogs.com/weimjsam/p/5841816.html) 无法抓包 -> 白名单/代理冲突 无法抓localhost: https://www.charlesproxy.com/documentation/faqs/localhost-traffic-doesnt-appear-in-charles/ 截图工具: - [qq 截图]: 截图+录屏+文字识别, 真强大 - [jietu](https://jietu.qq.com): 功能够用, 截图后默认存到剪切板 - [snip](https://snip.qq.com/): snip.qq 功能比 jietu.qq 少 - [snipaste](https://www.snipaste.com/): 只能截图当前显示器 nimble commander: 类似 total commander 的文件管理工具 外接显示器: http://tieba.baidu.com/p/5007071765 生产力工具链: https://github.com/Louiszhai/tool 图片上传工具: picgo + 七牛云 cal 日历: account 添加 qq calDAV -> 移动端直接添加 qq exchange touchbar + fn ``` # homebrew install curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install >> brew_install BREW_REPO = "https://mirrors.ustc.edu.cn/brew.git".freeze CORE_TAP_REPO = "https://mirrors.ustc.edu.cn/homebrew-core.git".freeze /usr/bin/ruby brew_install # homebrew update: https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/ # brew cask 安装dmg格式软件 brew cask info xxx # 查询 brew cask install xxx # 安装 brew cask install --force xxx # 更新 # pkg pkgutil --pkgs # pkg-uninstall https://github.com/mpapis/pkg_uninstaller bash < <(curl -sL https://raw.github.com/mpapis/pkg_uninstaller/master/pkg-install) # allow app form anywhere sudo spctl --master-disable # SIP(system integrity protection, rootless) csrutil disable # spotlight # 关闭spotlight服务, mdutil -h 查看具体使用 sudo mdutil -a -i off # 禁用, load 启用 sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist cd /System/Library/CoreServices/ # 删除menubar图标 sudo mv Search.bundle Search2.bundle # 提出SystemUIServer进程生效 # launchpad动画效果 defaults write com.apple.dock springboard-show-duration -int 0 defaults write com.apple.dock springboard-hide-duration -int 0 killall Dock # 生效 # 删除默认输入法 cd ~/Library/Preferences cp com.apple.HIToolbox.plist com.apple.HIToolbox.plist.bak sudo open com.apple.HIToolbox.plist # 关闭SIP -> 切换到默认输入法, 才能保存 -> 安装xcode, 也可以 xed com.apple.HIToolbox.plist -> 重启 # idea # 七牛图片高级处理: https://developer.qiniu.com/dora/manual/1270/the-advanced-treatment-of-images-imagemogr2 ?imageMogr2/auto-orient/thumbnail/500x500 # 自动旋转; 等比限宽+高缩放 ?imageMogr2/rotate/-90 # 旋转 ``` - [mac 按键标识](https://blog.csdn.net/HaoDaWang/article/details/78731098) - [mac 软件下载](https://xclient.info) - [mac 找到快捷键](https://sspai.com/post/45338) ## alfred alfred的确是神器, 需要好好提提: - 切应用: 常用应用可以「调教」到输入一个字母解决 - 搜索 文件 - 搜索 chrome 书签 - 设置 百度/百度地图 搜索 - 设置 微云 同步配置 [Alfred workflow](https://www.jianshu.com/p/0e78168da7ab) [workflow - gtihub](https://github.com/gharlan/alfred-github-workflow): `gh > help` 查看帮助 ## 效率工具 things: https://www.jianshu.com/p/4de1ffd3d6d9 OmniFocus: https://sspai.com/post/27582 ## iterm2 mouseless copy C-f-tab Autocomplete C-; Paste History C-S-h Full Screen C-enter Window Arrangements: 保存常用TAB布局 Shell Integration/Utilities https://iterm2.com/documentation-shell-integration.html Password Manager show timestamp open quickly find cursor C-/ iterm2 粘贴时有多余字符 0~ 1~: `printf '\e[?2004l'` copy mode: cmd-S-c(进入) -> C-v(选中模式) jkhl(移动) y(复制) # prod ubuntu docker git+ssh-keygen adduser chenzhilin passwd chenzhilin visudo: sudo: joe ALL=(ALL) NOPASSWD: ALL alpine: crond(需要手动启动) id www groupadd www useradd -g www -s /sbin/nologin www ssh root@139.224.206.200 "sudo runuser -l www -c 'cd /data/service.base; whoami; pwd;git pull'"