Skip to content

Instantly share code, notes, and snippets.

@matin
matin / clabe_enums.py
Created September 10, 2018 23:57
validate bank code for CLABE
from enum import Enum
class BankCode(Enum):
BANAMEX = '002'
BBVA_BANCOMER = '012'
SANTANDER = '014'
def validate_bank_code(bank_code: str) -> bool:
@matin
matin / certificar_stp.py
Created December 30, 2019 15:01
dar de alta nueva cuenta y registrar un orden
import datetime as dt
from stpmex import Client
PKEY = """Bag Attributes
friendlyName: prueba
localKeyID: 54 69 6D 65 20 31 33 32 34 35 39 35 30 31 35 33 33 30
Key Attributes: <No Attributes>
-----BEGIN ENCRYPTED PRIVATE KEY-----
import asyncio
import time
from functools import partial
from typing import Any, Callable, Optional
async def create_awaitable(func: Callable, *args, **kwargs) -> Any:
loop = asyncio.get_running_loop()
return await loop.run_in_executor(None, partial(func, *args, **kwargs))
@matin
matin / SKILL.md
Created April 3, 2026 19:32
Claude Code skill: merge Dependabot PRs (rebase + squash, worktree isolation)
name merge-dependabot
description Merge open Dependabot PRs one at a time, rebasing on main between each, after verifying safety

Merge all open Dependabot PRs sequentially, verifying each one before merging.

Run this entire workflow in a background agent with worktree isolation so it does not affect the current working directory or branch.