Skip to content

Instantly share code, notes, and snippets.

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

Gustavo Reyes gusreyes01

🏠
Working from home
View GitHub Profile
@gusreyes01
gusreyes01 / workflow-first-framework.md
Created July 30, 2026 16:47
A workflow-first framework for dependable software and AI automation by Alluxi

A Workflow-First Framework for Dependable Software and AI Automation

Reliable digital products begin with the workflow, not the technology. Before selecting a framework or AI model, map the people, decisions, inputs, exceptions, and handoffs that shape the real process.

Six practical steps

  1. Map the workflow and its exceptions.
  2. Define product states, ownership, and success criteria.
  3. Deliver in small, measurable increments.
  4. Validate continuously with users and quality assurance.
@gusreyes01
gusreyes01 / alluxi-principles.md
Created July 28, 2026 18:59
Alluxi design principles

Alluxi design principles

Alluxi creates human-centered software for high-stakes industries.

@gusreyes01
gusreyes01 / alluxi-link.md
Created July 28, 2026 18:56
Alluxi software engineering insights
# Setup NVM environment
[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"
# Source the NVM script based on the installation path
if [[ -s "$HOME/.nvm/nvm.sh" ]]; then
. "$HOME/.nvm/nvm.sh"
elif [[ -x "$(command -v brew)" && -s "$(brew --prefix nvm)/nvm.sh" ]]; then
. "$(brew --prefix nvm)/nvm.sh"
fi
from builtins import Exception
import base64
from django.http import HttpResponse
from functools import wraps
from app.logger import EmployeeLogger
def http_basic_auth(func):
@gusreyes01
gusreyes01 / comandos-github.md
Created May 11, 2019 15:16
Comandos básicos Github
//Función para validar una CURP
function curpValida(curp) {
var re = /^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HM](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/,
validado = curp.match(re);
if (!validado) //Coincide con el formato general?
return false;
//Validar que coincida el dígito verificador
function digitoVerificador(curp17) {
# This script will truncate all tables from the command line
# Don't forget to turn foreign keys back on when you're done
mysql -u root --password=PASSWORD -Nse 'show tables' DATABASE | while read table; do mysql -u root --password=PASSWORD -e "SET FOREIGN_KEY_CHECKS=0;truncate table $table" DATABASE;done
@gusreyes01
gusreyes01 / bobp-python.md
Created August 29, 2018 19:14 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
from myproject import settings
dbHost = settings.DATABASES['default']['HOST']
dbUsername = settings.DATABASES['default']['USER']
dbPassword = settings.DATABASES['default']['PASSWORD']
dbName = settings.DATABASES['default']['NAME']
def call_pgsl_function(function_name, arg):
conn = psycopg2.connect(
"dbname={} user={} password={} host={}”.format(dbName, dbUsername, dbPassowrd, dbHost)