Skip to content

Instantly share code, notes, and snippets.

View rgordeev's full-sized avatar

Roman Gordeev rgordeev

View GitHub Profile
@rgordeev
rgordeev / introrx.md
Created June 14, 2017 10:41 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@rgordeev
rgordeev / Dockerfile
Created July 19, 2017 12:51 — forked from juhamust/Dockerfile
Kurento Media Server with Docker and SSL support (WIP)
# stream oriented kurento
#
# VERSION 4.4.3
FROM ubuntu:14.04
MAINTAINER Patxi Gortázar <[email protected]>
RUN apt-get update \
&& apt-get -y dist-upgrade \
&& apt-get install -y wget
@rgordeev
rgordeev / omni-chat.conf
Created October 5, 2017 08:08
Nginx conf Example
# configuration for the SSL
server {
# Set the ssl listener
listen 443 ssl;
server_name omni-chat.ru, www.omni-chat.ru, localhost;
# set ssl to on
ssl on;
# Specify the ssl certificates
@rgordeev
rgordeev / gist:280e9870da623023ebff4a350001b30e
Created December 22, 2017 07:22 — forked from afair/gist:3803895
PostgreSQL and Pgpool Architecture

Hey! I saw this has been indexed by the search engines. It is a first draft of a post I ended up publishing on my blog at: Scaling PostgreSQL With Pgpool and PgBouncer

Thanks for stopping by!

PostgreSQL and Pgpool Architecture

@rgordeev
rgordeev / dev1.md
Last active January 3, 2018 17:31
Postgresql DEV1

Темы

Базовый инструментарий

  1. Установка и управление, psql

Архитектура

  1. Общее устройство PostgreSQL
  2. Изоляция и многоверсионность
  3. Буферный кэш и журнал

Организация данных

  1. Логическая структура
  2. Физическая структура
@rgordeev
rgordeev / nginx.conf
Created January 21, 2019 10:47
Configure Nginx to handle WSS connections
# First configure reverse proxy before server,
# that will transfer WSS inbound traffic to unsecure local server, namely:
server {
# This is your reqular configuration for SSL connections to website
# Set port to listen ssl connections
listen 443 ssl;
# Set hosts names to handle
server_name example.com www.example.com
# Set sertificate configuration
@rgordeev
rgordeev / nginx.conf
Created January 21, 2019 11:00 — forked from atma/nginx.conf
Nginx + nodejs + socket.io websockets
# Add to nginx.conf http section
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
@rgordeev
rgordeev / logging.properties
Created January 22, 2019 13:55
Tomcat logging rotation
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
[
{
"Execution Time": 479344.31,
"Planning Time": 2.009,
"Plan": {
"Partial Mode": "Finalize",
"Temp Written Blocks": 16114,
"Node Type": "Aggregate",
"Strategy": "Sorted",
"Actual Total Time": 478954.944,