Skip to content

Instantly share code, notes, and snippets.

ChromeDriver Linux Installation

  1. wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
  2. $ sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
  3. sudo apt update
  4. sudo apt install unzip google-chrome-stable
  5. Navigate to the ChromeDriver page and choose the latest version (2.37 at the time of writing this)
  6. Copy the link for the linux download
  7. wget http://chromedriver.storage.googleapis.com/2.37/chromedriver_linux64.zip
  8. unzip chromedriver_linux64.zip
@SKempin
SKempin / Git Subtree basics.md
Last active May 16, 2024 20:38
Git Subtree basics

Git Subtree Basics

If you hate git submodule, then you may want to give git subtree a try.

Background

When you want to use a subtree, you add the subtree to an existing repository where the subtree is a reference to another repository url and branch/tag. This add command adds all the code and files into the main repository locally; it's not just a reference to a remote repo.

When you stage and commit files for the main repo, it will add all of the remote files in the same operation. The subtree checkout will pull all the files in one pass, so there is no need to try and connect to another repo to get the portion of subtree files, because they were already included in the main repo.

Adding a subtree

Let's say you already have a git repository with at least one commit. You can add another repository into this respository like this: