apt-get update
python3 --version
def get_wb_url(nm): | |
vol = nm // 100000 | |
part = nm // 1000 | |
if (vol >= 0 and vol <= 143) : | |
host = "//basket-01.wb.ru" | |
if vol >= 144 and vol <= 287: | |
host = "//basket-02.wb.ru" | |
if vol >= 288 and vol <= 431: | |
host = "//basket-03.wb.ru" | |
if vol >= 432 and vol <= 719: |
public static class Helper | |
{ | |
public static string getMonthName ( DateTime dt ) { | |
string[] m = new string[]{ | |
"Январь", | |
"Февраль", | |
"Март", | |
"Апрель", | |
"Май", |
set number | |
set foldmethod=manual | |
set viminfo='1000,f1 | |
set showcmd | |
set incsearch | |
set hlsearch | |
set ruler | |
set showmatch | |
set cursorline |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>FETCH JS</title> | |
</head> | |
<body> | |
<h1>Authors</h1> | |
<ul id="authors"></ul> |
using System; | |
using System.IO; | |
using System.Text; | |
public class Script | |
{ | |
public static object Execute() | |
{ | |
using (var sw = new StreamWriter(@"C:\Users\shilgen\Documents\1.csv", false, Encoding.UTF8)) | |
{ |
#!/bin/sh | |
# Запускать командой sudo ./getreboothistory.sh | tee reboothistory.txt | |
# На выходе reboothistory.txt файл с историей перезагрузок сервера reboothistory.txt | |
# sudo chmod +x getreboothistory.sh | |
uname -a | |
ip -4 addr | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | |
echo "uptime" | |
uptime |