rm doc/vim
This commit is contained in:
parent
073f7e651c
commit
8309500f61
@ -1,6 +1,4 @@
|
||||
`/etc/ssh/sshd_config`
|
||||
* Adding public key to remote machine :\
|
||||
* ```ssh remotehost "umask 077; cat > .ssh/authorized_keys" < .ssh/id_rsa_backup.pub```
|
||||
|
||||
|
||||
* Access for VPS:
|
||||
|
||||
24
doc/tips.md
24
doc/tips.md
@ -1,33 +1,9 @@
|
||||
|
||||
## Tips
|
||||
|
||||
|
||||
1. ```bash
|
||||
echo $RANDOM # Return random 0-32767
|
||||
```
|
||||
|
||||
2. ```bash
|
||||
\command # without using alias
|
||||
```
|
||||
|
||||
3. ```bash
|
||||
mount /dev/sda2 /home
|
||||
```
|
||||
|
||||
4. ```bash
|
||||
mount /dev/sdb_ /mnt/Files # Other disk
|
||||
ln -s /mnt/Files $HOME # symlink in Home
|
||||
```
|
||||
|
||||
4. ```bash
|
||||
sudo pkill -9 -t pts/1 # close session
|
||||
```
|
||||
|
||||
5. ```bash
|
||||
[space]command # without saving in history
|
||||
sudo !! # last command with sudo
|
||||
```
|
||||
|
||||
|
||||
### Autostart
|
||||
* create ```/etc/systemd/system/service.service```
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
|
||||
## commentary.vim
|
||||
```gcc``` - comment string
|
||||
```v``` + ```gc``` - comment selected block
|
||||
|
||||
## surround.vim
|
||||
https://github.com/tpope/vim-surround
|
||||
Loading…
x
Reference in New Issue
Block a user