- Installation
- Create PostgreSQL Cluster
- Connect to a PostgreSQL Cluster
- psql
- pgAdmin
- Updating PostgreSQL Cluster
- High Availability
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################## | |
# | |
# 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. | |
# |
Create cluster
gcloud container clusters create "gke-px" \
--zone "asia-southeast1-a" \
--cluster-version "1.20.8-gke.900" \
--machine-type "n1-standard-4" \
--image-type "UBUNTU" \
--disk-type "pd-ssd" \
--disk-size "100" \
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: odoo-16 | |
labels: | |
cattle.io/creator: "norman" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import requests | |
from bs4 import BeautifulSoup | |
def get_exchange_rates_vcb(exchange_date=None, currencies=["USD"]): | |
headers = { | |
'authority': 'portal.vietcombank.com.vn', | |
'accept': '*/*', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Flutter publish release | |
on: | |
push: | |
tags: | |
- android-v[0-9]+.[0-9]+.[0-9]+ | |
- ios-v[0-9]+.[0-9]+.[0-9]+ | |
- v[0-9]+.[0-9]+.[0-9]+ | |
jobs: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################################################################ | |
# Script for installing Odoo on Ubuntu 20.04 LTS (could be used for other version too) | |
# Author: Henry Robert Muwanika | |
#------------------------------------------------------------------------------- | |
# This script will install Odoo on your Ubuntu 20.04 server. It can install multiple Odoo instances | |
# in one Ubuntu because of the different xmlrpc_ports | |
#------------------------------------------------------------------------------- | |
# crontab -e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
NewerOlder