Skip to content

Instantly share code, notes, and snippets.

View regulyarniy's full-sized avatar

Regulyarniy Nikolay regulyarniy

  • Russia, Khabarovsk
View GitHub Profile
import { HTTP_STATUS } from '../../constants';
import { redirectToLogin } from '../utils';
const ContentType = {
JSON: `application/json`,
TEXT: `text/plain`,
EXCEL: `application/vnd.ms-excel`,
PDF: `application/pdf`,
HTML: `text/html`
};
@regulyarniy
regulyarniy / resetButton.css
Created October 24, 2019 06:58
reset button styles
border: none;
margin: 0;
padding: 0;
width: auto;
overflow: visible;
background: transparent;
/* inherit font & color from ancestor */
color: inherit;
@regulyarniy
regulyarniy / app.js
Created March 19, 2019 21:27
express-first-app
const express = require('express');
const Joi = require('joi');
const app = express();
const courses = [
{id: 1, name: `course1`},
{id: 2, name: `course2`},
{id: 3, name: `course3`},
];
server {
listen 80;
server_name zabbix.domain.ru;
return 301 https://zabbix.domain.ru$request_uri;
}
server {
listen 443 ssl default_server;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';