現場入場時
修飾キー(Mac)
Git
インストール(Mac)
homebrewを入れたらgitのインストールは完了
https://brew.sh/index_ja
インストール(Windows)
https://gitforwindows.org/
(説明)
https://qiita.com/andna0410/items/c9b8e232d4aa9ac77584
config
$ git config --global user.name 'xxxxxxxxxxxx' $ git config --global user.email 'xxxxxxxxxxxx.com'
改行コードの置換禁止
$ git config --global core.autocrlf false
設定確認
$ git config --global --list
Python2→3に切り替え
https://nontitle.xyz/archives/135
※「source .bash_profile」は「source ~/.bash_profile」に読み替える
.bash_profille
# Setting PATH for Python 3.7 # The original version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}" export PATH
↓
# Setting PATH for Python 3.7 # The original version is saved in .bash_profile.pysave # PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}" # export PATH export PATH="$HOME/.pyenv/shims:$PATH"
pip(Mac)
sudo easy_install pip
profile作成
aws configure --profile switchmoto
その後でスイッチロール用のプロファイルを追加
echo " [profile switchsaki] region = ap-northeast-1 role_arn = arn:aws:iam::xxxxxxxxxxxx:role/{ロール名} source_profile = switchmoto " >> ~/.aws/config
鍵作成
cd ~/.ssh ssh-keygen -t rsa -f fuji_keypairs 秘密鍵(fuji_keypairs_rsa)と公開鍵(fuji_keypairs_rsa.pub)が作成される 公開鍵出力 cat ~/.ssh/fuji_keypairs_rsa.pub > /Users/username/Documents/authorized_keys.txt
cd ~/.ssh/config
これらを設定すると「ssh host1」とかでssh接続できる。 Host host1 HostName git-codecommit.ap-northeast-1.amazonaws.com User xxxxxxxxxxxxxxxxxxx IdentityFile ~/.ssh/id_rsa TCPKeepAlive yes IdentitiesOnly yes Host github.com HostName github.com IdentityFile ~/.ssh/rsa_github User git
VSCode
https://code.visualstudio.com/
拡張機能
・Docker
・Git Graph
・Japanese Language Pack...
・Python
・Remote - Containers
VSCodeでコミット間の差分を確認
・Git History
Pythonのリンター ・flake8 ・mypy
必須ではないがあると便利な拡張機能
・vscode-icons
・Bracket Pair
・Whitespace+
・zenkaku
・Rainbow CSV
curl
sudo apt install curl