show dbs
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import os | |
| import sys | |
| from datetime import datetime | |
| import requests | |
| import xlrd | |
| ############################################################# | |
| # Скрипт проверяет каков результат рассмотрения заявления по | |
| # программе переселения. Файлы для проверки загружаются с сайта | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | sudo apt-get update | |
| sudo apt-get install nginx | |
| sudo systemctl start nginx | |
| sudo nano /etc/nginx/sites-available/default | |
| sudo cat /etc/nginx/nginx.conf | |
| Контекст - разделы в файлах конфигурации в которых используются директивы (events, http, server) | |
| Директивы - конкретные опции конфигурации. Состоит из имени опции и значения | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | open `cmd` as an admin | |
| cd/ | |
| netsh | |
| wlan show profile | |
| # with your current SSID -> Beeline777 | |
| wlan show profile Beeline777 key=clear | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # a list of the VMs | |
| VBoxManage list vms | |
| # to run the "Ubuntu Server" VM | |
| VBoxManage startvm "Ubuntu Server" --type headless | |
| # to pause that VM | |
| VBoxManage controlvm "Ubuntu Server" pause --type headless | |
| # to restart that paused VM | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # replicaSet | |
| mkdir -p rs1 rs2 rs3 | |
| # or in windows /c/rs1 or /data/db/rs1 | |
| mongod --replSet myReplSet --logpath "rs1.log" --dbpath rs1 --port 27018 & | |
| mongod --replSet myReplSet --logpath "rs2.log" --dbpath rs2 --port 27019 & | |
| mongod --replSet myReplSet --logpath "rs3.log" --dbpath rs3 --port 27020 & | |
| # then connect to | |
| mongo --port 27018 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | :set number relativenumber | |
| :set nu rnu | |
| :set autoindent " Indent a new line the same amount as the line just typed | |
| :set tabstop=2 " Number of columns occupied by a tab | |
| :set shiftwidth=2 " Width for autoindents | |
| :set softtabstop=2 " See multiple spaces as tabstops so <BS> does the right thing | |
| :set mouse=v " Enable mouse click | |
| :set cc=100 " Set an 80 column border for good coding style | |
| :set cursorline " highlight current cursorline | |
| :set ttyfast " Speed up scrolling in Vim | 
OlderNewer