jhk16 / mycheatsheet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My cheat sheet

  • Add existing submodule
git submodule add <url of remote submodule> <relative path of submodule>
  • Find string and substitute
grep "origin" * -rl | xargs sed -i 's/origin/substitute/g'
  • Change python specific version (3.8.0)
# Install python packages
sudo apt install python3.8 python3.8-dev python-pip python3-pip

# Install python3.8 to system
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 0

# Set primary python version when running python
sudo update-alternatives --config python

# Set primary python3 version when running python3
sudo update-alternatives --config python3

# Install packages you need
python -m pip install -U matplotlib
python -m pip install -U pandas
python -m pip install -U seaborn

# Fix 'command not found'
sudo ln -s \
	/usr/lib/python3/dist-packages/apt_pkg.cpython-36m-x86_64-linux-gnu.so \
	/usr/lib/python3/dist-packages/apt_pkg.so

About