Skip to content

Instantly share code, notes, and snippets.

@solesensei
Last active October 3, 2021 19:38
Show Gist options
  • Save solesensei/fc8b619ccc8f2e1fe6cd5ddfa8e5d81b to your computer and use it in GitHub Desktop.
Save solesensei/fc8b619ccc8f2e1fe6cd5ddfa8e5d81b to your computer and use it in GitHub Desktop.
Miniconda + LaTeX + Generate ssh-key + GitHub Project + Spyder IDE
export EMAIL="your_email@example.com"
export GITHUB_USER=$USER
export REPO_NAME="repo_name"
export REPO="git@${GITHUB_USER}:${REPO_NAME}.git"
export PRJ_DIR="~/prj"
mkdir -p $PRJ_DIR && cd $PRJ_DIR
apt install update
# Latex
apt install git texlive-latex-extra xclip
# Conda + packages
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && bash Miniconda3-latest-Linux-x86_64.sh && conda install numpy scipy matplotlib jupyter spyder
# Setup git
git config --global user.name $USER
git config --global user.email $EMAIL
# Generate SSH Key
ssh-keygen -t ed25519 -C $EMAIL
eval "$(ssh-agent -s)" && ssh-add ~/.ssh/id_ed25519 && xclip -sel c < ~/.ssh/id_ed25519
echo -n "Paste key here: https://github.com/settings/ssh/new [PRESS any key when done]" && read my_var
# Cloning project
git clone $REPO
cd $REPO_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment