Skip to content

Instantly share code, notes, and snippets.

Avatar
One Man Army

Arkady Emelyanov arkady-emelyanov

One Man Army
View GitHub Profile
@arkady-emelyanov
arkady-emelyanov / haproxy.cfg
Last active May 28, 2020
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
arkady-emelyanov / config.fish
Last active Oct 4, 2018
fish configuration
View config.fish
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
You can’t perform that action at this time.