Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 1.62 KB

NOTE.md

File metadata and controls

58 lines (34 loc) · 1.62 KB

NOTE

Tmux

  • requires some manual work to complete the installation

  • To install the plugins, you need to start a session(just run tmux), and

    • press Ctrl + a + I to install plugins
    • press Ctrl + a + r to reload the configuration
  • Create a new session inside a tmux session

    • :new -s <name>

iTerm2

Git

  • Delete untracked branches: git branch -vv | grep ': gone]'| grep -v "\*" | awk '{ print $1; }' | xargs -r git branch -d

VIM

  • Prettify JSON in Vim with jq: %!jq .

Anaconda

Ubuntu

  • Turn off GUI sudo systemctl set-default multi-user
  • Turn on GUI sudo systemctl set-default graphical
  • Don't forget to reboot

Fix the user can't run docker with non-root user

Create the docker group if it does not exist

$ sudo groupadd docker

Add your user to the docker group.

$ sudo usermod -aG docker $USER

Run the following command or Logout and login again and run (that doesn't work you may need to reboot your machine first)

$ newgrp docker

Check if docker can be run without root

$ docker run hello-world