Skip to content

Instantly share code, notes, and snippets.

View yucer's full-sized avatar

Yurdik Cervantes yucer

View GitHub Profile
@yucer
yucer / debug-smtpd
Created February 11, 2016 16:26 — forked from tachesimazzoca/debug-smtpd
Python SMTP Debugging Server #python
#!/usr/bin/python
import asyncore
import logging
import smtpd
import sys
log = logging.getLogger('debug-smtpd')
class LoggingSMTPServer(smtpd.SMTPServer):
@yucer
yucer / archive.py
Created August 21, 2022 09:28 — forked from yucer-elbt/archive.py
Python Mixin for SQLAlchemy autopartition by week (postgres)
import logging
from sqlalchemy.sql import text
_logger = logging.getLogger(__name__)
class ArchivableMixin:
"""Model which can be duplicated via one special materialized view"""
@yucer
yucer / docker-compose-pgadmin.yml
Created September 6, 2023 09:47 — forked from SergioDiniz/docker-compose-pgadmin.yml
Docker Compose config to postgres and dpage/pgadmin4
version: '3.5'
services:
postgres:
container_name: postgres_container
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-app_db}