-
沟通
沟通, 而不要抱怨.
走在路上, 一男的对一女的说, “能不能快点走啊? 哎– 能不能不要看手机了.” 如果是天气太冷, 或者是要赶时间, 或者是任何原因, 心平气和的说出来.
-
自私
之前看一句话, “如果你愿意走第一步, 我愿意走完剩下的99步”. 现在想想, 这是多自私啊, 第一步是最最难的, 剩下的99步简单.
-
洗澡
小时候洗澡是因为身上太脏了, 到南方很久以后才接受洗澡是为了舒服点吧, 现在是因为, 哎呀要出门了, 还是洗个澡吧.
-
log4j2根据名字解析main参数不正常工作
https://issues.apache.org/jira/browse/LOG4J2-1013 感觉很是很重要的功能,至少2.2版本就有了,一直到2.8版本才解决. 在maven里面还没有, 真有人用这个功能吗?
-
阻止osx的hostname在DHCP时被更改
osx设置Hostname的顺序, 参考https://excitedcuriosity.wordpress.com/2007/08/24/mac-os-x-hostname-determination/ 07年的文章, 不知道还准不准
-
The name provided by the DHCP or BootP server for the primary IP address
-
The first name returned by a reverse DNS (address-to-name) query for the primary IP address
-
The local hostname (set in the Sharing pane of System Preferences)
-
The name localhost
阻止被更改
sudo scutil --set HostName myhostname
-
-
在VIM中查看所有map
:map
可以查看所有映射 -
淘宝把我的重定向到world.taobao.com
我是参考https://haoel.github.io配置的路由拨VPN
今天逛淘宝发现被跳转到world.taobao.com
chrome看了下解析出来的www.taobao.com是中国的. traceroute www.taobao.com也都是中国的
然后怀疑cookie引起的, 清了之后果然好了.但是我现在不记得刚才上淘宝是要看什么了.
-
brew安装应用时出错
brew安装Python3 和 vim时, 都是报错
==> ./configure --prefix=/usr/local/Cellar/apr/1.5.2/libexec checking for suffix of executables... checking whether we are cross compiling... configure: error: in `/private/tmp/vim-7.4.2235/': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details
看github上面说是因为osx 10.11与老版本的xcode不兼容了
解决:
xcode-select --install sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
-
go get files recursively using glob?
golang官方的glob不能支持**代表递归
https://github.com/golang/go/issues/11862
https://github.com/driskell/log-courier/issues/285mattn给了一个他自己写的第三方库https://github.com/mattn/go-zglob
-
在mac系统vim中绑定command键
只能在macvim中, 才能对commnad组合键做映射.
就是command+c 因为在CLI中, commnad键会被iterm/terminal等终端应用截获. Option也是需要一些额外的办法才能使用, 而且会有负作用.也是需要一些额外的办法才能使用.
参考http://stackoverflow.com/questions/9450905/how-to-bind-vim-through-tmux-to-cmd-key/9451636#9451636