Month summary - June 2022

Posted by Tobiasz Kedzierski on 30.06.2022

June 2022

I am aggregating here some more or less interesting stuff of various IT related materials which I came across this month. Some of them are strictly related to the things I did or am currently doing.

Some thoughts

This month I did a lot of sport, Kubernetes, Terraform and GitHub Actions. Not necessarily in that order. Maybe even too much since I did not have energy to read or watch too many interesting things, however I made an internal presentation about the last one: GitHub Actions. I am a huge fan of this CI/CD and I am pretty experienced with it. Sharing is caring so I wanted to share some hints and tips which may not be obvious and/or not documented very well. For this purpose I created a repository TobKed/github_actions_demo and some slides. It was a light tech talk and took me approximately 10 minutes which was a pretty fun experience all in all.

Articles

„Otaczałem się drogimi, niepotrzebnymi rzeczami” – rozmowa z Wojtkiem Zającem

Zwiedził 50 krajów, pracował zdalnie z wielu miejsc na całym świecie. Od najbardziej przyziemnych, po te absolutnie egzotyczne. W 2015 roku po prostu kupił bilet w jedną stronę i nie wyobraża już sobie, że można żyć inaczej. Wojtek Zając to inspirujący programista, który chętnie dzieli się wiedzą i swoimi doświadczeniami.

Python

Format Specification Mini-Language

“Format specifications” are used within replacement fields contained within a format string to define how individual values are presented (see Format String Syntax and Formatted string literals).

Format String Syntax

The syntax is related to that of formatted string literals, but it is less sophisticated and, in particular, does not support arbitrary expressions.

Formatted string literals

A formatted string literal or f-string is a string literal that is prefixed with 'f' or 'F'. These strings may contain replacement fields, which are expressions delimited by curly braces {}. While other string literals always have a constant value, formatted strings are really expressions evaluated at run time.

How to Create a Command-line Application with argparse

Python comes with a built-in library called argparse that you can use to create a command-line interface.

Django

Django: How to send email without Celery

Lightweight emails without Celery. And without a request-response cycle.

Cloud

Protect sensitive info in logs using Google Cloud

Application logs may capture information that includes sensitive or proprietary data. As a result, this data may be available to unauthorized personnel that have access to application logs but should not be able to access that sensitive data

6 Important things you need to run Kubernetes in production

Kubernetes is a very complex platform, but setting up a Kubernetes cluster is fairly easy as long as you choose a managed cloud solution. I would never advise self-managing a Kubernetes cluster unless you have a very good reason to do so.