Open in app

Sign In

Write

Sign In

Lorenzo Felletti
Lorenzo Felletti

136 Followers

Home

Lists

About

Published in

CodeX

·Aug 23

Load Environment on Directory Change

Change gcloud context, az login, Kubernetes context, set environment variables, and more just changing directory — During a typical day at work, I often need to change between two, or even three different repos, each with its relative gcloud, or az, or whatever configuration, its Kubernetes context, and so on. At the beginning, I found it really frustrating and time-consuming to backward-search in history the commands…

Programming

3 min read

Load Environment on Directory Change
Load Environment on Directory Change
Programming

3 min read


Jun 14

How to terminate a side-car container in Kubernetes Job
225
6

Koji Nishikiori

Great article!

Great article! I would like to add that using the Cloud SQL Proxy v2 (gcr.io/cloud-sql-connectors/cloud-sql-proxy:latest) they added the --quitquitquit endpoint to achieve the same result. In order to use it, you should do something like the following: in your main container's args add trap “curl -X POST localhost:9091/quitquitquit” EXIT in the proxy container, add to the args --quitquitquit to enable the endpoint

1 min read

1 min read


Published in

Geek Culture

·Mar 21

Run Scripts on Your Laptop From The Smartphone Using Bluetooth LE

Create a framework to allow commanding the execution of scripts on a BLE central from your smartphone — In this article, I will talk about how you can command the execution of scripts on your laptop (acting as a Bluetooth LE Central) from your smartphone (acting as the Peripheral). If you don’t know what BLE is, or what BLE central and peripheral are, or what GATT is, it…

Android

8 min read

Run Scripts on Your Laptop From The Smartphone Using Bluetooth LE
Run Scripts on Your Laptop From The Smartphone Using Bluetooth LE
Android

8 min read


Published in

Geek Culture

·Dec 6, 2022

Android Permissions Made Easy

One library to rule them all — Handling permissions requests in Android is not as straightforward as I thought it should be, especially for beginners. Thus, I decided to write a small library to help in managing them. The library is very simple to use: choose a request code for each group of permissions you are going…

Android

3 min read

Android Permissions Made Easy
Android Permissions Made Easy
Android

3 min read


Published in

Geek Culture

·Oct 24, 2022

How to Create a Bluetooth LE Scanner for Android

A simple tutorial that will guide you through the process of creating a BLE scanner app — Creating a Bluetooth LE scanner for Android is not too complicated. What you need is some understanding of the Android architecture and of Java/Kotlin. The most difficult part of building such an app would be…managing the permissions, or even finding what are the required permissions (at least for me). What You Need to Follow This Tutorial

Android

4 min read

How to Create a Bluetooth LE Scanner for Android
How to Create a Bluetooth LE Scanner for Android
Android

4 min read


Apr 5, 2022

“Merge” Last Two Commits

Have you ever wanted to merge your last two commits, maybe because you forgot to commit something in the first one, but you don’t know where to start? Well, read this article! — We have all been there, you commit some super-important changes you made, but suddenly realize that you forgot to commit something crucial. Now you’re worried that your history will not be as clean as it was before! If only there was a way to merge your two commits together…

Git

2 min read

“Merge” Last Two Commits
“Merge” Last Two Commits
Git

2 min read


Published in

Python in Plain English

·Oct 25, 2021

How to Build a RegEx Engine in Python

Part 7: The Backtracking System — In this article, we will complete our regex engine with the backtracking system. …

Python

5 min read

How to Build a RegEx Engine in Python
How to Build a RegEx Engine in Python
Python

5 min read


Published in

Python in Plain English

·Sep 28, 2021

How to Build a RegEx Engine in Python

Part 6: the engine — It is finally time to write about the engine of the regex engine we’re building. As we already saw, the parser produces an AST as a result of the parsing of a regular expression. Now, the engine has to check whether a given string matches or not a regex. To do…

Python

4 min read

How to Build a RegEx Engine in Python
How to Build a RegEx Engine in Python
Python

4 min read


Published in

Python in Plain English

·Aug 2, 2021

How to Build a RegEx Engine in Python

Part 5: Parser conclusion — In this article, we’ll dig rapidly through the code of the parser, which will produce the AST we discussed in the previous article in output. This will hopefully be the last piece about the parser, and then we’ll move on to the engine and the juicy part, the backtracking system. …

Python

3 min read

How to Build a RegEx Engine in Python
How to Build a RegEx Engine in Python
Python

3 min read


Published in

Python in Plain English

·Jul 31, 2021

How to Build a RegEx Engine in Python

Part 4: The AST — In this article, I will present you the process I followed to end up with the final AST of the solution, and which are its strength and flaws (because yes, following my articles you won’t create a perfect solution, sorry). So, let’s start with the logic blocks I wanted to…

Python

4 min read

How to Build a RegEx Engine in Python
How to Build a RegEx Engine in Python
Python

4 min read

Lorenzo Felletti

Lorenzo Felletti

136 Followers

Cloud Engineer, open-source enthusiast

Following
  • R.L. Morgan

    R.L. Morgan

  • Prof Bill Buchanan OBE

    Prof Bill Buchanan OBE

  • Anne Bonfert

    Anne Bonfert

  • Leon Wei

    Leon Wei

  • Wouter

    Wouter

See all (234)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams