Skip to content

Git useful commands

In this post I will share a collection of Git useful commands that I’m certain we will need during our daily work as a developer. I will keep updating this list as I come across other operations.

Please use some of these commands with caution, as they may lead you to data loss if don’t know exactly what you’re doing.

Repositories

Init a repo

git init

Clone a repo

git clone <repo_url>
Read More »Git useful commands

Scala: access modifiers

Scala access modifiers

Scala provides a more granular access control if compared to Java. This post describes and shows how to implement each of the Scala access modifiers.

Access modifiers

Scala has only two explicit access modifiers: private and protected, besides the implicit no modifier that defaults to public access.

However, we can qualify these modifiers to give them a finer-grained access control level.

Read More »Scala: access modifiers

View logs of running and crashed pods in Kubernetes

This tutorial will show you how to view logs of running and crashed pods in Kubernetes, also the ability to “tail” the log content.

First, find your pod’s name

Discover your pod’s name by running the following command, and picking the desired pod’s name from the list:

kubectl get pods
NAME                          READY     STATUS             RESTARTS   AGE
customer-96f4985b5-9h5pp      1/1       Running            7          11d
order-569b7f8f55-drd9t        1/1       Running            0          7d
Read More »View logs of running and crashed pods in Kubernetes