Skip to content

Instantly share code, notes, and snippets.


Arkadii Emelianov arkady-emelyanov

View GitHub Profile
arkady-emelyanov / haproxy.cfg
Last active Sep 13, 2021
haproxy check: postgresql is master
View haproxy.cfg
# Sample haproxy postgresql master check
# haproxy listen: 5431
# pg, instance #1 listen: 5432 (master node)
# pg, instance #2 listen: 5433 (replica node)
# external failover, promoting replica to master in case of failure
# passwordless auth for user web
# template1 database is accessible by user web
# haproxy will pass connection to postgresql master node:
arkady-emelyanov /
Last active Oct 4, 2018
fish configuration
set fish_greeting
set -gx LANG en_US.UTF-8
set -gx LC_MESSAGES en_US.UTF-8
set -gx LC_ALL en_US.UTF-8
set -gx EDITOR nano
set fish_color_error ff8a00
# c0 to c4 progress from dark to bright