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 443Package 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-bundlePackage 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" ],
问题就解决了。
原文可参照
2. 网络
$ networksetup -listallhardwareports | pbcopyHardware Port: USB 10/100 LANDevice: en6Ethernet Address: 00:e0:4c:36:20:2bHardware Port: Wi-FiDevice: en0Ethernet Address: ac:bc:32:c1:1b:85Hardware Port: Bluetooth PANDevice: en3Ethernet Address: ac:bc:32:c1:1b:86Hardware Port: Thunderbolt 1Device: en1Ethernet Address: 6a:00:01:59:8a:30Hardware Port: Thunderbolt 2Device: en2Ethernet Address: 6a:00:01:59:8a:31Hardware Port: Thunderbolt BridgeDevice: bridge0Ethernet Address: 6a:00:01:59:8a:30VLAN Configurations===================
command line
invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
重装一下command line
xcode-select --install
上面命令无法下载时, 可以在苹果开发者中心下载安装,
iTerm2
ssh服务器中文问题
ssh登录到Linux服务器后, vim/less等中文会显示乱码. 解决办法(mac端):
sudo vim /private/etc/ssh/ssh_config注释掉 SendEnv LANG LC_*