Better formatting
This commit is contained in:
parent
3d9af1dc93
commit
54e0aed621
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
## vim
|
## vim
|
||||||
|
|
||||||
* Set tab to 4 spaces:
|
* Set tab to 4 spaces:
|
||||||
|
|
||||||
```
|
```
|
||||||
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
|
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
|
||||||
```
|
```
|
||||||
|
@ -10,11 +11,13 @@
|
||||||
## Shell
|
## Shell
|
||||||
|
|
||||||
* Find my public IP:
|
* Find my public IP:
|
||||||
|
|
||||||
```
|
```
|
||||||
dig +short myip.opendns.com @resolver1.opendns.com
|
dig +short myip.opendns.com @resolver1.opendns.com
|
||||||
```
|
```
|
||||||
|
|
||||||
* Check if private and public ssh key match:
|
* 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)'
|
diff <(cat ~/.ssh/id_rsa.pub | cut -d' ' -f 2) <(ssh-keygen -y -f ~/.ssh/id_rsa | cut -d' ' -f 2)'
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue