Blog o simplemente notas públicas

Enhancing Blog Posts with OpenAI's ChatGPT

Discover how to seamlessly elevate your content game using ChatGPT. Dive into our guide on automating and enhancing blog titles and summaries with OpenAI's powerful NLP models.

Keep and preserve ipython and bash history between docker-compose containers image
Keep and preserve ipython and bash history between docker-compose containers

A stateless application, i.e. a docker container, is one that neither reads nor stores information about its state from one time that it is run to the next. But for development mode is useful to keep the history of the commands that we write. In this post I will give you a hint for keeping those.

Using breakpoint with ipdb

The PYTHONBREAKPOINT environment variable can be set to the name of a callable. This can be the callable that starts a debugging session in another 3rd party debugger library.

uWSGI is a fast (pure C code) and self-healing solution for python apps, but it's not easy to use. image
uWSGI is a fast (pure C code) and self-healing solution for python apps, but it's not easy to use.

uWsgi is designed to operate on WSGI callables found in python modules. It's super nice, but most of the defaults values are wrong.

Postgresql dumps in Docker: tips for using it in docker-entrypoint-initdb.d, a way of adding additional initialization and data to containers. image
Postgresql dumps in Docker: tips for using it in docker-entrypoint-initdb.d, a way of adding additional initialization and data to containers.

If we create a PostgreSQL dump by default it does with owner and privileges. And this is usually fine, except if we want it for feeding our local environments. In this case (I hope), we use different users and passwords. So it would be nice if we can do the dump without that kind of permissions (without ownership and privileges).

Dynamodb: la base de datos de clave-valor y documentos de Amazon que ofrece rendimiento en milisegundos de un solo dígito a cualquier escala. image
Dynamodb: la base de datos de clave-valor y documentos de Amazon que ofrece rendimiento en milisegundos de un solo dígito a cualquier escala.

Les comparto un docker-compose para aprender dynamodb con python. La compose tiene dynamodb, dynamodb-admin y un python3.8 alpine.

Celery: cómo asegurarse de ejecutar de a una sola tarea a la vez. Ensuring a task is only executed one at a time image
Celery: cómo asegurarse de ejecutar de a una sola tarea a la vez. Ensuring a task is only executed one at a time

Celery: cómo asegurarse de ejecutar de a una tarea a la vez. Ensuring a task is only executed one at a time

Git Hooks: Agregar el nombre del branch en los commits.

El objetivo es agregar el nombre del branch en los commits. Muchas veces el nombre del branch tiene el número de ticket de jira. El objetivo es saber porqué se hizo un cambio x y nada mejor que tener la referencia al ticket.

git
Openvpn con docker image
Openvpn con docker

Si buscas configurar una vpn rápidamente este es el lugar. Con docker, docker-compose en un par de pasos tenes un red virtual privada..

Dockerfile para python con alpine y multistage builds. image
Dockerfile para python con alpine y multistage builds.

La mayoria de los dockerfiles que usan python usan la imagen que está basada en debian y tiene la desventaja de ocupar bastante espacio y traer un montón de herramientas que son útiles durante el desarrollo (como por ejemplo bash) y no tan útiles para el ambiente productivo. Por esto últimamente se usa más y más imágenes basadas en Alpine. Una distribucion de linux (basada en busybox) que ocupa solo 5mb.

Me voy a Alemania gracias a Python! (Parte 1) image
Me voy a Alemania gracias a Python! (Parte 1)

Conseguí un trabajo en el que me tramitaron la visa y se hicieron cargo de la relocalización. Si te dedicas a la programación es el momento para aprovecharlo, hay muchas ofertas para viajar por el mundo.

Python Debug en Docker: como usar pdb en docker con wdb y docker compose! image
Python Debug en Docker: como usar pdb en docker con wdb y docker compose!

Estaba muy acostumbrado a debugear con mis queridos pdb.set_trace y de repente se apareció Docker en mi camino y perdi la posibilidad de attachearme al debugger. Por eso ahora descubr WDB y funciona de maravilla.

1 2 3 4 5 Siguiente Ultimo