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
@celm1990
celm1990 / prod.yaml
Last active July 30, 2025 18:56
Configuracion Odoo Traefik usando Doodba
hostname: "dominio.com"
labels:
doodba.domain.main: "dominio.com"
traefik.enable: "true"
traefik.domain: "dominio.com"
traefik.forbiddenCrawlers-0.frontend.headers.customResponseHeaders:
"X-Robots-Tag:noindex, nofollow"
traefik.forbiddenCrawlers-0.frontend.rule: Host:dominio.com;Path:/web,/web/{anything:.*},/website/info,/website/info/{anything:.*}
traefik.main-0.frontend.rule: Host:dominio.com
traefik.longpolling-0.frontend.rule: Host:dominio.com;Path:/websocket,/websocket/{anything:.*}
@samuelcolvin
samuelcolvin / python-people.md
Last active August 29, 2025 11:09
An incomplete list of people in the Python community to follow on Twitter and Mastodon.

Python People

(Updated 2022-11-16 with suggestions from comments below, Twitter and Mastodon)

An incomplete list of people in the Python community to follow on Twitter and Mastodon.

With the risk that Twitter dies, I'd be sad to lose links to interesting people in the community, hence this list.

I would love you to comment below with links to people I've missed.

@amon-ra
amon-ra / pg_migrate.sh
Created October 21, 2022 07:45
Migrate doodba DB
#migrate/OLD/data
#migrate/NEW/data
docker run -ti -e PGUSER=odoo -e POSTGRES_INITDB_ARGS="-U odoo" --rm -v $PWD/migrate:/var/lib/postgresql tianon/postgres-upgrade:11-to-15 --link
@erral
erral / index.md
Last active October 13, 2022 04:22
How to deploy Volto sites automatically in non-docker scenarios
env:
browser: true
# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449
parserOptions:
ecmaVersion: 2020
sourceType: module
allowImportExportEverywhere: true
# Globals available in Odoo that shouldn't produce errorings
@xgp
xgp / Dockerfile
Last active August 24, 2025 14:06
Keycloak 17 example using JGroups JDBC_PING discovery protocol for Infinispan
FROM quay.io/keycloak/keycloak:17.0.0 as builder
ENV KC_METRICS_ENABLED=true
ENV KC_FEATURES=preview
ENV KC_DB=postgres
ENV KC_HTTP_RELATIVE_PATH=/auth
# specify the custom cache config file here
ENV KC_CACHE_CONFIG_FILE=cache-ispn-jdbc-ping.xml
# copy the custom cache config file into the keycloak conf dir
@sehrishnaz
sehrishnaz / boost_website_traffic_using_python_selenium.py
Created December 2, 2021 05:44
Advance Python Bot to Increase Website Traffic using Selenium
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.common.keys import Keys
import time
import pandas as pd
import random
driver = webdriver.Chrome(executable_path=ChromeDriverManager().install())
driver.maximize_window()
col_name = ['url']
@sehrishnaz
sehrishnaz / install_python_library_automatically_on_installation_of_odoo.py
Created November 26, 2021 09:20
Install Python Packages on Installation of Odoo Modules
class Install_Packages:
"""
This Class installs required Packages or library
"""
get_pckg = subprocess.check_output([sys.executable, '-m', 'pip', 'freeze'])
installed_packages = [r.decode().split('==')[0] for r in get_pckg.split()]
# List of your required packages
required_packages = ['packages_1', 'packages_2', 'packages_3', 'packages_4']
@sehrishnaz
sehrishnaz / gmail_python_bot.py
Last active February 1, 2022 19:01
Send Bulk Email From Python Using Cloud Console Gmail API - Python Gmail Bot
import os.path
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from google.oauth2.credentials import Credentials
from email.mime.text import MIMEText
import base64
import pandas as pd
import random
import time
@sehrishnaz
sehrishnaz / auto_post_facebook_bot_using_python.py
Created November 22, 2021 10:42
Automate Facebook Post to Groups using Graph API and Python
import json
from facebook import GraphAPI
import pandas as pd
import time
import secrets
import random
def read_creds(filename):
'''
Store API credentials in a safe place.