Skip to content

Instantly share code, notes, and snippets.

View mgaitan's full-sized avatar
πŸ› οΈ
devex

MartΓ­n GaitΓ‘n mgaitan

πŸ› οΈ
devex
View GitHub Profile
@mgaitan
mgaitan / androidcam
Last active April 2, 2026 21:43
androidcam: use an Android phone as a Linux webcam via scrcpy + v4l2loopback
#!/usr/bin/env bash
# Android phone as webcam for Linux via scrcpy + v4l2loopback.
#
# Initial setup recap:
# 1. Install build/runtime dependencies if needed:
# sudo apt install ffmpeg libsdl2-2.0-0 adb wget \
# gcc git pkg-config meson ninja-build libsdl2-dev \
# libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev \
# libswresample-dev libusb-1.0-0 libusb-1.0-0-dev \

AGENTS.md

PropΓ³sito

Este proyecto existe para probar consultas sobre Datos Abiertos de Argentina usando CKAN MCP con el menor nivel posible de alucinaciΓ³n.

La prioridad es:

  1. responder sΓ³lo con evidencia trazable a datasets y recursos concretos;
  2. distinguir claramente entre hechos observados, cΓ³mputos derivados e inferencias;
  3. rechazar o limitar respuestas cuando el portal no alcance para sostenerlas.
@mgaitan
mgaitan / benchmark.py
Created December 7, 2025 17:02
tl-parser vs pyquery vs bs4 with html5 and lxml parsers
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "tl-parser==0.7.11",
# "beautifulsoup4",
# "lxml",
# "pyquery",
# "matplotlib",
# ]
#
$ llm \
  --schema '{
    "type": "object",
    "properties": {
      "customer": {
        "type": "string",
        "description": "Nombre del cliente"
      },
      "items": {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mgaitan
mgaitan / traductor_jeringozo.py
Created November 5, 2025 15:30
Este es un traductor jerigonzo en Python que hicimos con mi hija Ema, basado en su solucion del desafio de Pilas Bloques que ella implementΓ³
"""
Este es un traductor jerigonzo en Python que hicimos con mi hija Ema,
basado en su solucion del desafio de Pilas Bloques que ella implementΓ³
https://pilasbloques.program.ar/online/#/desafio/254
Ejemplo:
$ python traductor_jerigonzo.py papi te quiero mucho
papapipi tepe qupuipieperopo mupuchopo
@mgaitan
mgaitan / example.txt
Created October 31, 2025 20:42
zw example
# Nothing to see here β€‹β€Œβ€‹β€Œβ€‹β€Œβ€‹β€‹β€‹β€Œβ€Œβ€‹β€Œβ€‹β€‹β€‹β€‹β€Œβ€Œβ€‹β€‹β€Œβ€‹β€Œβ€‹β€Œβ€Œβ€Œβ€Œβ€‹β€‹β€Œβ€‹β€‹β€Œβ€‹β€‹β€‹β€‹β€‹β€‹β€Œβ€Œβ€‹β€‹β€‹β€‹β€Œβ€‹β€Œβ€Œβ€Œβ€‹β€‹β€Œβ€‹β€‹β€Œβ€Œβ€‹β€‹β€Œβ€‹β€Œβ€‹β€‹β€Œβ€‹β€‹β€‹β€‹β€‹β€‹β€Œβ€Œβ€‹β€‹β€Œβ€‹β€Œβ€‹β€Œβ€Œβ€‹β€‹β€‹β€‹β€Œβ€‹β€Œβ€Œβ€Œβ€‹β€Œβ€‹β€‹β€‹β€Œβ€Œβ€‹β€Œβ€‹β€‹β€Œβ€‹β€Œβ€Œβ€‹β€Œβ€Œβ€Œβ€‹β€‹β€Œβ€Œβ€‹β€‹β€Œβ€Œβ€Œβ€‹β€‹β€Œβ€‹β€‹β€‹β€‹β€‹β€‹β€Œβ€Œβ€Œβ€‹β€Œβ€‹β€‹β€‹β€Œβ€Œβ€‹β€Œβ€‹β€‹β€‹β€‹β€Œβ€Œβ€‹β€‹β€Œβ€‹β€Œβ€‹β€‹β€Œβ€‹β€‹β€‹β€‹β€‹β€‹β€Œβ€Œβ€‹β€‹β€Œβ€‹β€‹β€‹β€Œβ€Œβ€‹β€Œβ€Œβ€Œβ€Œβ€‹β€Œβ€Œβ€‹β€‹β€Œβ€Œβ€Œβ€‹β€Œβ€Œβ€Œβ€‹β€‹β€Œβ€Œ
But, damn, it sure is a catchy rhythm.
β€‹β€Œβ€‹β€Œβ€‹β€Œβ€‹β€‹β€‹β€Œβ€Œβ€‹β€Œβ€‹β€‹β€‹β€‹β€Œβ€Œβ€‹β€‹β€Œβ€‹β€Œβ€‹β€Œβ€Œβ€Œβ€Œβ€‹β€‹β€Œβ€‹β€‹β€Œβ€‹β€‹β€‹β€‹β€‹β€‹β€Œβ€Œβ€‹β€‹β€‹β€‹β€Œβ€‹β€Œβ€Œβ€Œβ€‹β€‹β€Œβ€‹β€‹β€Œβ€Œβ€‹β€‹β€Œβ€‹β€Œβ€‹β€‹β€Œβ€‹β€‹β€‹β€‹β€‹β€‹β€Œβ€Œβ€‹β€‹β€Œβ€‹β€Œβ€‹β€Œβ€Œβ€‹β€‹β€‹β€‹β€Œβ€‹β€Œβ€Œβ€Œβ€‹β€Œβ€‹β€‹β€‹β€Œβ€Œβ€‹β€Œβ€‹β€‹β€Œβ€‹β€Œβ€Œβ€‹β€Œβ€Œβ€Œβ€‹β€‹β€Œβ€Œβ€‹β€‹β€Œβ€Œβ€Œβ€‹β€‹β€Œβ€‹β€‹β€‹β€‹β€‹β€‹β€Œβ€Œβ€Œβ€‹β€Œβ€‹β€‹β€‹β€Œβ€Œβ€‹β€Œβ€‹β€‹β€‹β€‹β€Œβ€Œβ€‹β€‹β€Œβ€‹β€Œβ€‹β€‹β€Œβ€‹β€‹β€‹β€‹β€‹β€‹β€Œβ€Œβ€‹β€‹β€‹β€Œβ€Œβ€‹β€Œβ€Œβ€‹β€‹β€‹β€‹β€Œβ€‹β€Œβ€Œβ€Œβ€‹β€Œβ€‹β€‹β€‹β€Œβ€Œβ€Œβ€‹β€‹β€Œβ€Œ
@mgaitan
mgaitan / README.md
Last active October 3, 2025 17:04
Bot demo con python-telegram-bot

Bot de audio de Telegram

Este bot de demostraciΓ³n usa python-telegram-bot para ofrecer una interacciΓ³n sencilla con mensajes de audio.

CaracterΓ­sticas

  • Comando /start: responde con un saludo para confirmar que el bot estΓ‘ disponible.
  • Comando /audio: envΓ­a el archivo audio.mp3 ubicado junto a bot.py como un adjunto reproducible.
  • RecepciΓ³n de audio o notas de voz: cada vez que llega un mensaje de voz o un archivo de audio, el bot lo guarda en /tmp con un nombre que incluye el ID del chat, el ID del mensaje y el identificador ΓΊnico del archivo, y responde confirmando la operaciΓ³n.

Requisitos

# Nothing to see here β€‹β€Œβ€‹β€‹β€‹β€‹β€‹β€Œβ€‹β€Œβ€Œβ€‹β€Œβ€Œβ€‹β€‹β€‹β€Œβ€Œβ€Œβ€‹β€Œβ€‹β€‹β€‹β€Œβ€Œβ€‹β€‹β€‹β€‹β€Œβ€‹β€‹β€Œβ€‹β€‹β€‹β€‹β€‹β€‹β€Œβ€Œβ€‹β€‹β€‹β€Œβ€Œβ€‹β€Œβ€Œβ€‹β€Œβ€Œβ€Œβ€Œβ€‹β€Œβ€Œβ€‹β€Œβ€‹β€‹β€Œβ€‹β€Œβ€Œβ€‹β€Œβ€Œβ€‹β€Œβ€‹β€Œβ€Œβ€‹β€‹β€Œβ€‹β€Œβ€‹β€Œβ€Œβ€Œβ€‹β€‹β€Œβ€‹β€‹β€Œβ€Œβ€‹β€‹β€‹β€‹β€Œβ€‹β€‹β€Œβ€‹β€‹β€‹β€‹β€‹β€Œβ€Œβ€Œβ€Œβ€‹β€‹β€‹β€‹β€Œβ€‹β€‹β€Œβ€Œβ€Œβ€Œβ€Œβ€Œβ€‹β€‹β€‹β€Œβ€Œβ€Œβ€‹β€Œβ€‹β€Œβ€Œβ€‹β€Œβ€‹β€Œβ€‹β€‹β€Œβ€‹β€Œβ€Œβ€Œβ€‹β€‹β€‹β€Œβ€‹β€Œβ€Œβ€Œβ€‹β€‹β€‹β€Œβ€‹β€Œβ€Œβ€Œβ€‹
But, damn, it sure is a catchy rhythm.
β€‹β€Œβ€‹β€‹β€Œβ€‹β€Œβ€Œβ€‹β€Œβ€Œβ€‹β€‹β€‹β€‹β€Œβ€‹β€Œβ€Œβ€Œβ€‹β€‹β€Œβ€‹β€‹β€Œβ€Œβ€‹β€Œβ€‹β€‹β€Œβ€‹β€Œβ€Œβ€‹β€Œβ€Œβ€Œβ€‹β€‹β€Œβ€Œβ€‹β€‹β€‹β€‹β€Œβ€‹β€‹β€Œβ€‹β€‹β€‹β€‹β€‹β€‹β€Œβ€Œβ€‹β€‹β€Œβ€‹β€Œβ€‹β€Œβ€Œβ€Œβ€‹β€‹β€Œβ€Œβ€‹β€‹β€Œβ€‹β€‹β€‹β€‹β€‹β€‹β€Œβ€Œβ€‹β€‹β€‹β€‹β€Œβ€‹β€Œβ€Œβ€‹β€Œβ€Œβ€‹β€‹β€‹β€Œβ€Œβ€Œβ€‹β€Œβ€‹β€‹β€‹β€Œβ€Œβ€‹β€‹β€‹β€‹β€Œβ€‹β€‹β€Œβ€‹β€‹β€‹β€‹β€‹β€‹β€Œβ€Œβ€‹β€‹β€‹β€Œβ€Œβ€‹β€Œβ€Œβ€‹β€Œβ€Œβ€Œβ€Œβ€‹β€Œβ€Œβ€‹β€Œβ€‹β€‹β€Œβ€‹β€Œβ€Œβ€‹β€Œβ€Œβ€‹β€Œβ€‹β€Œβ€Œβ€‹β€‹β€Œβ€‹β€Œβ€‹β€Œβ€Œβ€Œβ€‹β€‹β€Œβ€‹β€‹β€Œβ€Œβ€‹β€‹β€‹β€‹β€Œ