Skip to content

Instantly share code, notes, and snippets.

View arkady-emelyanov's full-sized avatar
♾️

Arkadii Emelianov arkady-emelyanov

♾️
View GitHub Profile
@arkady-emelyanov
arkady-emelyanov / config.fish
Last active October 4, 2018 13:41
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
@arkady-emelyanov
arkady-emelyanov / haproxy.cfg
Last active October 25, 2023 22:02
haproxy check: postgresql is master
# 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: