Skip to content

Instantly share code, notes, and snippets.

View tuanle96's full-sized avatar
♥️
Focusing

Lê Anh Tuấn tuanle96

♥️
Focusing
View GitHub Profile

PostgreSQL High Availibility on Kubernetes

  • Installation
  • Create PostgreSQL Cluster
  • Connect to a PostgreSQL Cluster
    • psql
    • pgAdmin
  • Updating PostgreSQL Cluster
  • High Availability
@tuanle96
tuanle96 / main.py
Created February 7, 2023 02:26 — forked from theangryangel/main.py
Odoo 12 Prometheus instrumentation
##############################################################################
#
# Author: Miku Laitinen / Avoin.Systems
# Copyright 2019 Avoin.Systems
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
@tuanle96
tuanle96 / squid.conf
Created December 2, 2023 04:08
Squid Configuration with basic auth
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 0.0.0.1-0.255.255.255 # RFC 1122 "this" network (LAN)
acl localnet src 10.0.0.0/8 # RFC 1918 local private network (LAN)
acl localnet src 100.64.0.0/10 # RFC 6598 shared address space (CGN)
acl localnet src 169.254.0.0/16 # RFC 3927 link-local (directly plugged) machines
acl localnet src 172.16.0.0/12 # RFC 1918 local private network (LAN)
acl localnet src 192.168.0.0/16 # RFC 1918 local private network (LAN)
acl localnet src fc00::/7 # RFC 4193 local private network range
@tuanle96
tuanle96 / Dockerfile
Created March 27, 2025 15:12
Odoo 18 Dockerfile
FROM debian:bookworm-slim
SHELL ["/bin/bash", "-xo", "pipefail", "-c"]
# Không sử dụng ARG cho dữ liệu nhạy cảm (sẽ sử dụng biến môi trường khi build nếu cần)
ARG GIT_ORG=earnbaseio
ARG GIT_REPO=odoo
ARG GIT_REGISTRY=github.com
ARG TARGETARCH=