Usefull Oneliners
Go to file
2018-07-03 23:29:19 +03:00
LICENSE Initial commit 2018-06-08 13:28:44 +03:00
README.md Check if ssh key pair matches 2018-07-03 23:29:19 +03:00

Usefull Oneliners

vim

  • Set tab to 4 spaces:
    set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
    

Shell

  • Find my public IP:

    dig +short myip.opendns.com @resolver1.opendns.com
    
  • Check if private and public ssh key match:

    diff <(cat ~/.ssh/id_rsa.pub | cut -d' ' -f 2) <(ssh-keygen -y -f ~/.ssh/id_rsa | cut -d' ' -f 2)'
    

References