備忘一下
- git 配置:
ssh-keygen -t rsa -C "郵箱地址"
連續3個回車。如果不需要密碼的話。最後得到了兩個文件:
id_rsa
和id_rsa.pub
。將
id_rsa.pub
中內容拷貝到git 中ssh-key中保存git config --global user.name "用戶名" git config --global user.email "郵箱"
- ruby升級(這個只是其中一種方式)
rvm:Ruby Version Manager,Ruby版本管理器,包括Ruby的版本管理和Gem庫管理(gemset)。
curl -L get.rvm.io | bash -s stable
成功後:
source ~/.bashrc
source ~/.bash_profile
測試是否安裝正常
rvm -v
用rvm升級ruby(版本號自己調)
rvm install 2.5.1
- xcode 代碼提示功能失效
- cd進入~/Library/Developer/Xcode/DerivedData
- 找到你的項目所用的目錄(一般以你的項目名開頭)
- cd 目錄名
- rm -r Index 刪除掉你的項目所用索引文件夾
- 透明度16進製表示
| 100% | 00
| 80 % | 33
| 75 % | 40
| 70 % | 4D
| 65 % | 59
| 60 % | 66
| 55 % | 73
| 50 % | 80
| 45 % | 8C
| 40 % | 99
| 35 % | A6
| 30 % | B3
| 25 % | BF
| 20 % | CC
| 15 % | D9
| 10 % | E6
| 5 % | F2
| 0 % | FF
- mac顯示隱藏文件命令
- 在終端(Terminal)輸入如下命令,即可顯示隱藏文件和文件夾
defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
- p12證書轉pem
openssl pkcs12 -clcerts -nokeys -out (文件名).pem -in (p12證書文件名).p12 openssl pkcs12 -nocerts -out key.pem -in 1.p12 openssl rsa -in key.pem -out key2.pem