Skip to content

Instantly share code, notes, and snippets.

View macagua's full-sized avatar
🏠
Working from home

Leonardo J. Caballero G. macagua

🏠
Working from home
View GitHub Profile
@macagua
macagua / README.rst
Last active October 4, 2022 18:18
Install Odoo 8.0, Postgres 9.4, pgweb and wdb for Development environment

Install Postgres 9.4

Executing the following command:

$ docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres \
         --name challenge_db postgres:9.4
@macagua
macagua / doodba_cheatsheet.md
Last active September 19, 2022 18:44 — forked from michaelkarrer81/doodba_cheatsheet.md
[doodba tools] doodba tools and commands #doodba #odoo #docker #invoke #pre-commit

Installation

This project itself is just the template, but you need to install these tools to use it:

@macagua
macagua / Docker_debconf_unable_initialize_frontend_Dialog.rst
Last active April 10, 2022 11:07
debconf: unable to initialize frontend: Dialog

For remove this message

debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
@macagua
macagua / Odoo_Google_OAuth2.rst
Last active April 1, 2022 19:23
Odoo and Google OAuth 2

Odoo and Google OAuth 2

UPDATED: Wed 30 Mar 2022 06:17:03 PM -04.

Configure to allow user to sign up using OAuth

Tested

@macagua
macagua / Odoo_Facebook_Login.rst
Last active March 30, 2022 22:13
Odoo and Facebook

Odoo and Facebook Login

UPDATED: Wed 30 Mar 2022 06:14:30 PM -04.

Configure to allow user to sign up using OAuth

Tested

@macagua
macagua / Nginx_Proxy_Manager.md
Last active March 30, 2022 21:49
How install 'Nginx Proxy Manager' with 'Docker Compose'

nginx-proxy-manager

For build the containers, execute the following command:

$ sudo docker-compose up -d
$ sudo docker-compose logs -f nginx-proxy-manager
@macagua
macagua / letsencrypt_2020.md
Created September 21, 2021 04:18 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@macagua
macagua / Makefile
Created September 1, 2021 14:46 — forked from rsperl/Makefile #snippet
self-documenting makefile with colors
SHELL=/bin/bash
# to see all colors, run
# bash -c 'for c in {0..255}; do tput setaf $c; tput setaf $c | cat -v; echo =$c; done'
# the first 15 entries are the 8-bit colors
# define standard colors
ifneq (,$(findstring xterm,${TERM}))
BLACK := $(shell tput -Txterm setaf 0)
RED := $(shell tput -Txterm setaf 1)
@macagua
macagua / odoo.conf
Created July 23, 2021 22:00 — forked from n37r06u3/odoo.conf
Sample Odoo/Nginx Config (with dbfilter_from_header support)
# Author: Ryan Cole
# Website: https://ryanc.me
# GitHub: https://github.com/MGinshe
# Usage:
# Place this file in /etc/nginx/sites-enabled/
# Make sure you edit the DOMAIN_HERE and SSL_CERTIFICATE, and DB_FILTER sections
#
# Note: This config file is designed to be used with the Odoo dbfilter_from_header module
# https://apps.openerp.com/apps/modules/9.0/dbfilter_from_header/
@macagua
macagua / odoo_calculate_workers.sh
Last active July 21, 2021 13:06
Analyzes the characteristics of the server and helps calculate the number of workers and memory for each
#!/bin/bash
# CONST 1GB
CONST_1GB="1024*1024*1024"
# VARIABLE WORKERS
CMD_W=0