Skip to content

Instantly share code, notes, and snippets.

View kasymovga's full-sized avatar
:electron:
¯\_(ツ)_/¯

Kasymov Grigorii kasymovga

:electron:
¯\_(ツ)_/¯
View GitHub Profile

Requirements

  • Two of more server instances of Rexuiz.

Server interconnect example

For example you have 3 servers:

Server1 1.2.3.1:26051
Server2 1.2.3.2:26052
@kasymovga
kasymovga / RexuizMultiInstanceServerSetup.md
Last active July 10, 2022 16:46
Rexuiz multi-instance server setup

Requirements:

  • Any modern linux distribution with systemd (CentOS Stream, Oracle Linux 8, Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04).
  • Public IP address
  • Basic skills of working with linux console

Step 0. Prepare your system

Disable or setup firewall. For CentOS:

Hacks to split stdout to log files.

With tee:

| LOGPREFIX="/path/to/log/locations/log-" LOGSUFFIX=".log" split -l 10000 --filter 'rm -f `ls -t "$LOGPREFIX"*"$LOGSUFFIX"|tail -n +3`; exec tee -a "$LOGPREFIX`date +%Y%m%d%H`$LOGSUFFIX"' - none

Without tee:

| LOGPREFIX="/path/to/log/locations/log-" LOGSUFFIX=".log" split -l 10000 --filter 'rm -f `ls -t "$LOGPREFIX"*"$LOGSUFFIX"|tail -n +3`; exec cat >> "$LOGPREFIX`date +%Y%m%d%H`$LOGSUFFIX"' - none
@kasymovga
kasymovga / RexuizServerSetup.md
Last active January 26, 2024 20:49
Rexuiz Server Setup

Requirements:

  • Any modern linux distribution with systemd (CentOS Stream, Oracle Linux 8, Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04).
  • Public IP address
  • Basic skills of working with linux console

Step 0. Prepare your system

Disable or setup firewall. For CentOS:

@kasymovga
kasymovga / how to clear postgresql database
Created February 8, 2017 10:40
how to clear postgresql database
DROP SCHEMA public CASCADE;
CREATE SCHEMA public;
GRANT ALL ON SCHEMA public TO postgres;
GRANT ALL ON SCHEMA public TO public;
COMMENT ON SCHEMA public IS 'standard public schema';