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
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@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:.*}
@KroniK907
KroniK907 / GitButler-WSL.md
Last active February 11, 2026 18:01
Installing GitButler on Windows via WSL

Installing GitButler on WSL Ubuntu - A Complete Guide

Last updated: 2025-09-11 Installing Gitbutler Version: 0.16.0

This guide will provide a complete walkthrough for getting GitButler setup and functioning on a windows environment using Windows Subsystem for Linux (WSL).

Please note that GitButler on windows via wsl is not well tested and not officially supported. Also, please note that installing and running GitButler on windows and pointing it to a WSL project folder or visa versa is not currently supported.

Prerequisites:

@samuelcolvin
samuelcolvin / python-people.md
Last active February 19, 2026 08:26
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']