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" \| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| ### Keybase proof | |
| I hereby claim: | |
| * I am leanhtuan1996 on github. | |
| * I am justinle (https://keybase.io/justinle) on keybase. | |
| * I have a public key ASCgiyDiQj1nPYCrcv-gAdZGl3diKs-DqJKQ8GY_WK3htgo | |
| To claim this, I am signing this object: |
| # Django settings for myproject project. | |
| DEBUG = True | |
| TEMPLATE_DEBUG = DEBUG | |
| ADMINS = ( | |
| # ('Your Name', '[email protected]'), | |
| ) | |
| MANAGERS = ADMINS |
| // http://amanvirk.me/singleton-classes-in-es6/ | |
| let instance = null; | |
| class SingletonModuleScopedInstance { | |
| constructor() { | |
| if (!instance) { | |
| instance = this; | |
| } | |
| this._type = 'SingletonModuleScopedInstance'; |
| 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 |
| #!/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 |
| 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: |
| 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': '*/*', |
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: odoo-16 | |
| labels: | |
| cattle.io/creator: "norman" |
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" \