最近入手了mac pro 15款,一番挑拨用了不少时间,记录一些好用的东西。
(其实就是强迫症)
触控板
喜欢mac的3个理由
1.触控板
2.续航
3.shell
系统偏好设置里触控板设置有俩个地方,一个触控板,另一个在辅助功能里可以设置3指拖移
fn与cmd
之前没有用过13寸的电脑 总觉得mac少好多键不太方便
fn + delete = 向光标后删除
cmd + 方向左 = home
cmd + 方向右 = end
crtl+cmd+f 全屏某个应用
cmd+w 关闭应用
cmd+m 最小化应用
alt+cmd+esc 任务管理器
cmd+shift+3 截全屏
cmd+shift+4 选择截屏
cmd+delete 删除
cmd+alt+c 复制当前路径(finder下)
alt+cmd+h 隐藏除选中应用外的所有应用
在finder下选中一个目录按空格 可以查看目录大小
Time Machine
mac自带的备份工具,用起来还不错,可以设置不备份的路径
差异备份,只备份过,还没有尝试过还原
听说拿个新mac 还原一下就是自己电脑 =.=
brew
一个类似ubuntu下apt-get的包管理
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
iterm2+ohmyzsh+zsh
安装 http://blog.csdn.net/chenyufeng1991/article/details/50492626
iterm2的一些快捷键 http://wulfric.me/2015/08/iterm2/
iterm下按单词移动
Preferences -> Profiles -> Keys
其实最炫的还是ohmyzsh的theme 弄了2个晚上,还是配不好颜色 XD
设置的透明一点可以看到后面的字 233
shell 的一些快捷键
ctrl + a 将光标移动到命令行开头
ctrl + e 将光标移动到命令行结尾处
ctrl + u 删除光标前面所有字符
ctrl + k 删除光标后面所有字符
在shell下 open . 用finder打开该目录
netstat -ant|grep LISTEN 查看监听端口
lsof -i tcp:4300 查看某个端口对应进程
系统偏好-键盘-快捷键-服务-新建位于文件夹位置的终端窗口
shadowsocksng
https://github.com/shadowsocks/ShadowsocksX-NG/releases/
安装以后配置好服务器,用自动就可以在浏览器使用了,全局模式待研究
shell 下代理
vim ~/.zshrc 加入下面俩行
function ssup() {
export ALL_PROXY=socks5://127.0.0.1:8888
}
function ssdown() {
unset ALL_PROXY
}
想代理的时候ssup,平时ssdown
k-vim
下载了,还没入坑,感觉不适合我,不过还是很漂亮的
https://github.com/wklken/k-vim
vmware fusion
虚拟机 听说还不错 晚上看看
下载链接
http://www.vmware.com/products/fusion/fusion-evaluation.html
pro的序列号
http://bbs.feng.com/read-htm-tid-9810938.html
对比工具?
命令行的diff太难看了 需要一个对比工具
diffmerge 感觉挺好用的 还以为只有win下有
http://www.sourcegear.com/diffmerge/downloads.php
PHP-IDE
NetBeans IDE 或者phpstorm 试下水
先尝试下phpstorm吧
http://www.jetbrains.com/phpstorm/download/
安装后,在激活的时候选择 license server;
输入如下地址激活:
http://jetbrains.tencent.click
.Net反编译 与mac 环境
反编译
http://de4dot.com/
https://www.jetbrains.com/decompiler/
.net 环境
http://www.mono-project.com/download/
docker
安装
https://www.docker.com/products/docker#/mac
镜像
https://www.daocloud.io/mirror#accelerator-doc
官方文档很贴心
https://docs.docker.com/engine/getstarted/step_three/
https://docs.docker.com/docker-for-mac/
docker logs -f id 查看容器的log
pip换源
新建一个 ~/.pip/pip.conf
[global]
index-url = https://pypi.doubanio.com/simple/
在docker里的话 pip install -i https://pypi.doubanio.com/simple/ 包名
快的飞起
推荐一些常用的库
requests2
uncompyle6 pyc反编译工具
pyinstaller py2exe
pillow
django
flask
crypto
beautifulsoup
sublime
安装和序列号就不说了 记得把ln一个subl命令
记一些好用的快捷键
cmd+e 快速搜索选中文字
cmd+d 同时选中下一个选中文字 (然后可以同时编辑)
cmd+r 快速定位函数
cmd+p 快速搜索文件
cmd+control+g 同时选中所有选中文字 (然后可以同时编辑)
shift+cmd+f 在所有文件中搜索
keymap
[
{ "keys": ["ctrl+b"], "command": "clone_file" }, //克隆文件
{"keys": [";", ";"], "command": "exit_insert_mode"} //commond模式
{ "keys": ["home"], "command": "set_motion", "args": {"motion": "vi_move_to_first_non_white_space_character", "motion_args": {"extend": true}} }, //home
{ "keys": ["end"], "command": "set_motion", "args": {"inclusive": true, "motion": "vi_move_to_hard_eol", "motion_args": {"extend": true, "repeat": 1}} }, //end
{ "keys": ["ctrl+alt+c"],"command": "copy_path"} //复制文件路径
{"keys": ["super+ctrl+left"], "command": "navigation_history_back"}, //回到上一个编辑位置
{"keys": ["super+ctrl+right"], "command": "navigation_history_forward"} //回到下一个编辑位置
#https://forum.sublimetext.com/t/browser-like-back-forward-history-navigation/2230
]
快速打开终端
1、Go2shell
2、new terminal here
3、easy-new-file 收费6元
markdown编辑器
macdown
http://macdown.uranusjr.com/
笔记软件
有道云笔记
改ip出现ipv6错误
打开终端按如下命令操作
1.列出你的网卡
networksetup -listallnetworkservices
2.关闭ipv6
networksetup -setv6off "你网卡名字"
3.设置ip地址
networksetup -setmanual "网卡名字" 192.168.31.2 255.255.255.0 192.168.1.1
finder
finder的自定义栏可以按住cmd 拖app进去
右击标题栏可以快速进上一层目录
mac修改文件默认打开方式
如何打开任意来源的app
安装pip包出现permission denied
pip install ipython --user -U
遇到的一些问题
i5 cpu+8G内存会有点小卡(一点点) 建议i7+16G
500G ssd 在有多个虚拟机的情况下 可能不够用 只剩200G了 摔...
I appreciate your wordpress web template, exactly where did you down load it through? eekfdgckgedeedck
时间: 2017-09-23 at 14:12 回复It's not wordpress,it's typecho.
时间: 2017-10-16 at 22:18 回复bytheway the theme is called deep