wget https://nvidia.github.io/nvidia-docker/gpgkey --no-check-certificate
sudo apt-key add gpgkey
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update
sudo apt-get install -y nvidia-container-toolkit
sudo systemctl restart docker
Just a note to avoid setup hell for react19 + tailwindcss + typescript, here i use vite.
- Create project via vite.
npm create vite@latest
- Name
- React for framework
- Typescript (i don't like React Router v7, looks more confused than Next)
- Install tailwindcss in reference 1.
- Use tailwindcss@3
npm install -D tailwindcss@3 postcss autoprefixer
since init does not exist in 4.
- Use tailwindcss@3
- Add path alias in reference 2.
Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps:
- Enable SVM in BIOs of your PC.
- Enable WSL in Windows.
- Update WSL to latest version such that it has manage option.
- Move WSL to your favorite Drive.
- Install Ubuntu via
wsl --install Ubuntu-xx.xx
. - Install apt packages before getting pyenv.
sudo apt-get install libssl-dev libffi-dev liblzma-dev python3-tk tk-dev libreadline-dev bzip2
- Manage different versions of python
brew install pyenv
pyenv install 3.9.13
~/.pyenv/versions/3.9.13/bin/{python,pip}
- Install poetry for dependencies.
rm poetry.lock
~/.pyenv/versions/3.9.13/bin/pip install poetry
The only way I've succeeded so far is to employ SSH.
Assuming you are new to this like me, first I'd like to share with you that your Mac has a SSH config
file in a .ssh
directory. The config
file is where you draw relations of your SSH keys to each GitHub (or Bitbucket) account, and all your SSH keys generated are saved into .ssh
directory by default. You can navigate to it by running cd ~/.ssh
within your terminal, open the config
file with any editor, and it should look something like this:
Host * AddKeysToAgent yes
> UseKeyChain yes
{0: 'tench, Tinca tinca', | |
1: 'goldfish, Carassius auratus', | |
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias', | |
3: 'tiger shark, Galeocerdo cuvieri', | |
4: 'hammerhead, hammerhead shark', | |
5: 'electric ray, crampfish, numbfish, torpedo', | |
6: 'stingray', | |
7: 'cock', | |
8: 'hen', | |
9: 'ostrich, Struthio camelus', |