Skip to content

Instantly share code, notes, and snippets.

View kobybibas's full-sized avatar

Koby Bibas kobybibas

  • Tel Aviv, Israel
View GitHub Profile
@kobybibas
kobybibas / delete_git_submodule.md
Created July 6, 2020 07:10 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@kobybibas
kobybibas / tensorboard_aws_port_fordwing.txt
Last active June 9, 2020 17:00
Connect to TensorBoard that is running on a remote server.
# In .ssh/config file:
Host aws
HostName **********.compute.amazonaws.com
User ubuntu
IdentityFile ******.pem
IdentitiesOnly yes
LocalForward 6006 0.0.0.0:600
# In aws server
tensorboard --logdir .
# Having a requirements.txt file has follows
torch==1.5.0
numpy==1.18.1
# Add channels. Last added is with the highest priorety
conda config --add channels pytorch
conda config --add channels conda-forge
conda config --add channels anaconda
# Install pip for fallback