diff --git a/doc/ssh.md b/doc/ssh.md index d99facd..d1e95b6 100644 --- a/doc/ssh.md +++ b/doc/ssh.md @@ -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: diff --git a/doc/tips.md b/doc/tips.md index e9643a4..08c4491 100644 --- a/doc/tips.md +++ b/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``` diff --git a/doc/vim.md b/doc/vim.md deleted file mode 100644 index cadea61..0000000 --- a/doc/vim.md +++ /dev/null @@ -1,7 +0,0 @@ - -## commentary.vim -```gcc``` - comment string -```v``` + ```gc``` - comment selected block - -## surround.vim -https://github.com/tpope/vim-surround