Skip to content

Instantly share code, notes, and snippets.

@yagrush
yagrush / gist.md
Created April 16, 2024 04:49
Pythonの色々なfor
for book in books:
  pass

for i in range(10):
  pass

for i, book in enumerate(books):
  pass
@yagrush
yagrush / gist.md
Last active April 9, 2024 00:25
git: 別SSHキーで git clone する
git -c core.sshCommand="ssh -i ~/.ssh/mygit -F /dev/null" clone git@github.com:yagrush/python-apicall.git
@yagrush
yagrush / gist.md
Created April 3, 2024 04:29
NVMでnodeのデフォルトバージョンを固定する
nvm alias default v*.*.*
@yagrush
yagrush / gist.md
Created April 3, 2024 01:45
VSCode: 常に新しいタブで開くようにする
"workbench.editor.enablePreview": false
@yagrush
yagrush / gist.md
Created April 3, 2024 00:57
.gitignoreのキャッシュ削除

git rm -r --cached .

そのリポジトリだけgitコマンドで別のSSHキーを使う設定をする

git config --local core.sshCommand "ssh -i ~/.ssh/mygit -F /dev/null"

キャッシュを無視してgo install

GOPROXY=direct go install <package>@latest
@yagrush
yagrush / sh.sh
Created March 24, 2022 07:17
Dockerの溜まったimageのゴミを削除する
docker image prune -f
@yagrush
yagrush / sh.sh
Created March 24, 2022 05:21
git全キャッシュ削除
$ git rm -r --cached .