#参考资料
###下载单个文件,默认将输出打印到标准输出中(STDOUT)中
curl http://www.centos.org
#参考资料
###下载单个文件,默认将输出打印到标准输出中(STDOUT)中
curl http://www.centos.org
$ gem uninstall cocoapods | |
$ gem uninstall cocoapods-core | |
$ gem uninstall cocoapods-downloader | |
$ sudo rm -fr ~/Library/Caches/CocoaPods/ | |
$ sudo rm -fr ~/.cocoapods/repos/master/ | |
$ sudo rm -fr Pods/ | |
https://guides.cocoapods.org/using/troubleshooting.html |
> gem source -a https://gems.ruby-china.org/ | |
Error fetching https://gems.ruby-china.org/: | |
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://gems.ruby-china.org/specs.4.8.gz) | |
http://railsapps.github.io/openssl-certificate-verify-failed.html | |
依次执行下列命令 更新ssl证书 | |
$ rvm -v | |
$ rvm osx-ssl-certs status all | |
$ rvm osx-ssl-certs update all |
source 'https://git.oschina.net/lexrus/specs.git' | |
source 'http://git.oschina.net/akuandev/Specs.git' | |
source 'https://github.com/artsy/Specs.git' | |
source 'https://github.com/CocoaPods/Specs.git' |
{ | |
Filter = { | |
Bundles = ( | |
"com.sina.weibo", | |
"com.tencent.xin", | |
"com.tencent.mqq", | |
"com.apple.AppStore", | |
); | |
}; | |
} |
<key>LSApplicationQueriesSchemes</key> | |
<array> | |
<string>wechat</string> | |
<string>weixin</string> | |
<string>sinaweibohd</string> | |
<string>sinaweibo</string> | |
<string>sinaweibosso</string> | |
<string>weibosdk</string> | |
<string>weibosdk2.5</string> | |
<string>mqqapi</string> |
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications
like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID` |
# 去掉了curl的-sk参数,-s为静默状态(不提示错误),-k为允许不适用ssl | |
curl https://cloud.github.com/downloads/square/PonyDebugger/bootstrap-ponyd.py | \ | |
python - --ponyd-symlink=/usr/local/bin/ponyd ~/Library/PonyDebugger | |
# 报错 Could not find any downloads that satisfy the requirement pybonjour (from ponydebugger),运行下面的命令 | |
# activate your virtualenv | |
source ~/Library/PonyDebugger/bin/activate | |
# update the ponyd source | |
sudo pip install -U -e git+https://github.com/square/PonyDebugger.git#egg=ponydebugger --allow-external pybonjour --allow-unverified pybonjour | |
# updates chrome dev tools source |