Skip to content

Instantly share code, notes, and snippets.

### Nginx ###
check process nginx with pidfile /run/nginx.pid
start program = "/usr/sbin/service nginx start"
stop program = "/usr/sbin/service nginx stop"
if cpu > 60% for 2 cycles then alert
if cpu > 80% for 5 cycles then restart
if memory usage > 80% for 5 cycles then restart
if failed host 127.0.0.1 port 1010 protocol http
then restart
if 3 restarts within 5 cycles then timeout
@KhIgorLe
KhIgorLe / another file
Last active March 23, 2019 13:02
Вопрос про Сложение и вычитание от ТестГуру
sdfsfsdfsdfsf
@KhIgorLe
KhIgorLe / jggjggjgjg.txt
Last active March 23, 2019 13:13
Вопрос про Сложение и вычитание от ТестГуру
ghfhfhfhf
@KhIgorLe
KhIgorLe / test_guru_question.txt
Last active March 23, 2019 14:15
Вопрос про Умножение и деление от ТестГуру
2 * 3 = ?
@KhIgorLe
KhIgorLe / test_guru_question.txt
Created February 1, 2019 12:28
Вопрос про Сложение и вычитание от ТестГуру
2 + 2 = ?
5
4
55
@KhIgorLe
KhIgorLe / test_guru_question.txt
Created January 28, 2019 09:40
Вопрос про Умножение и деление от ТестГуру
2 * 3 = ?
6
5
7
@KhIgorLe
KhIgorLe / test_guru_question.txt
Created January 28, 2019 09:39
Вопрос про Умножение и деление от ТестГуру
2 * 3 = ?
6
5
7
@KhIgorLe
KhIgorLe / query.txt
Last active December 19, 2018 17:12
CREATE DATABASE test_guru;
CREATE TABLE categories (
id serial PRIMARY KEY,
title varchar(50) NOT null
);
CREATE TABLE tests (
id serial PRIMARY KEY,
title varchar(50) NOT null,
ncat -C httpbin.org 80
GET /anything HTTP/1.1
Host: httpbin.org
HTTP/1.1 200 OK
Connection: keep-alive
Server: gunicorn/19.9.0
Date: Sun, 16 Dec 2018 13:26:20 GMT
Content-Type: application/json
Content-Length: 247