This file contains 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
<?php | |
if ((isset($_SERVER['QUERY_STRING'])) and ($_SERVER['REMOTE_ADDR'] == '127.0.0.1') ){ | |
define('DEBUG', 1); | |
error_reporting(E_ALL); | |
ini_set('display_errors', true); | |
ini_set('html_errors', true); | |
} else { | |
define('DEBUG', 0); | |
} | |
if (!defined('_BR_')) define('_BR_',chr(13).chr(10)); |
This file contains 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
#!/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 |
This file contains 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
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)) | |
{ |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>FETCH JS</title> | |
</head> | |
<body> | |
<h1>Authors</h1> | |
<ul id="authors"></ul> |
This file contains 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 | |
set foldmethod=manual | |
set viminfo='1000,f1 | |
set showcmd | |
set incsearch | |
set hlsearch | |
set ruler | |
set showmatch | |
set cursorline |
This file contains 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
public static class Helper | |
{ | |
public static string getMonthName ( DateTime dt ) { | |
string[] m = new string[]{ | |
"Январь", | |
"Февраль", | |
"Март", | |
"Апрель", | |
"Май", |
OlderNewer