yamachu / isucon12-qualify

ISUCON12 今年も頑張るぞい
0 stars 0 forks source link

事前準備 #1

Open yamachu opened 2 years ago

yamachu commented 2 years ago

当日までにやること

Deploy keys の生成

https://github.com/yamachu/isucon12-qualify/settings/keys に登録するDeploy keysの生成

ssh-keygen -t ed25519 -C "yamachu-isucon12-qualify@example.com" -f isucon12-qualify

isucon12-qualify.pub を登録しておく

.ssh/config の雛形作成

Host a
  HostName 
  User isucon
  IdentityFile ~/.ssh/github
  ServerAliveInterval 60
  TCPKeepAlive yes

Host b
  HostName 
  User isucon
  IdentityFile ~/.ssh/github
  ServerAliveInterval 60
  TCPKeepAlive yes

Host c
  HostName 
  User isucon
  IdentityFile ~/.ssh/github
  ServerAliveInterval 60
  TCPKeepAlive yes

睡眠

よく寝る

yamachu commented 2 years ago

開始直後やること

.ssh/config の修正

HostName を書き換える

鍵の配置とGit Configの設定

ssh -t でbash起動するからそこで毎回コマンドコピペしてやる

for h in a b c; do
  cat ~/.ssh/isucon12-qualify | ssh $h -t 'cat > .ssh/isucon12-qualify; chmod 600 .ssh/isucon12-qualify;  /bin/bash -l'
done
cat >> ~/.ssh/config << EOF
Host github github.com
  HostName github.com
  IdentityFile ~/.ssh/isucon12-qualify
  User git
EOF
git config --global user.email "yamachu-isucon12-qualify@example.com"
git config --global user.name "yamachu-isucon"
sudo vi /etc/hostname

後は秘伝の書タレとかをあれして頑張る