1 - sublime
1.1 - Package-Controllor提示no package
cmd + shift + p快捷键打开Package Controller,install package时提示 no package avaliable
首先打开st3的debug模式,找到 Settings-User
,输入以下配置:
"debug": true
然后再一次 install package,看下console信息:
Package Control: Found previously exported CA bundle at /Users/iEpac/Library/Application Support/Sublime Text 3/Packages/User/oscrypto-ca-bundle.crt (265167 bytes)
Package Control: Urllib HTTPS Debug General
Connecting to packagecontrol.io on port 443
Package Control: Urllib HTTPS Debug General
Upgrading connection to SSL using CA certs file at /Users/iEpac/Library/Application Support/Sublime Text 3/Packages/User/Package Control.merged-ca-bundle
Package Control: Error downloading channel. URL error _ssl.c:532: The handshake operation timed out downloading https://packagecontrol.io/channel_v3.json.
这下就知道,是因为https握手超时导致的。解决方案如下:
依然是在Settings-User
中配置
"channels":[
"https://packagecontrol.io/channel_v3.json",
"http://web.archive.org/web/timemap/link/https://packagecontrol.io/channel_v3.json"
],
问题就解决了。
原文可参照github issue #959
2. 网络
$ networksetup -listallhardwareports | pbcopy
Hardware Port: USB 10/100 LAN
Device: en6
Ethernet Address: 00:e0:4c:36:20:2b
Hardware Port: Wi-Fi
Device: en0
Ethernet Address: ac:bc:32:c1:1b:85
Hardware Port: Bluetooth PAN
Device: en3
Ethernet Address: ac:bc:32:c1:1b:86
Hardware Port: Thunderbolt 1
Device: en1
Ethernet Address: 6a:00:01:59:8a:30
Hardware Port: Thunderbolt 2
Device: en2
Ethernet Address: 6a:00:01:59:8a:31
Hardware Port: Thunderbolt Bridge
Device: bridge0
Ethernet Address: 6a:00:01:59:8a:30
VLAN Configurations
===================
command line
invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
重装一下command line
xcode-select --install
上面命令无法下载时, 可以在苹果开发者中心下载安装, apple developer
iTerm2
ssh服务器中文问题
ssh登录到Linux服务器后, vim/less等中文会显示乱码. 解决办法(mac端):
sudo vim /private/etc/ssh/ssh_config
注释掉 SendEnv LANG LC_*