Category: <span>Programavimas</span>

I have just posted an article on Zedge blog on Medium about Kotlin’s extension functions. If you’re interested, please take a look: https://medium.com/zedge/extension-functions-in-kotlin-44563d7880f5

Programavimas

I have just posted a blog in Zedge blog on Medium about using PostgreSQL databases in Live environments. If you want to know how to add a column to PostgreSQL database and not cause a downtime of the database, please take a look…

Programavimas

You have a running Kubernetes deployment with pods and want to restart all of them. How could you do that? If you have Kubernetes 1.15, simply try:

Programavimas

As for me, I’m constantly typing a couple of commands into the console. And some of these commands contain parameters. So, I’ve decided to create an alias for them. But how to create an alias with parameters? It’s simple:

Programavimas

If you want to run Docker Compose with Kafka and Zookeeper, you could use the following code:

Programavimas

I had a slight issue, of how to start MySQL server by using Docker Compose. So, I came up with the following configuration: Works 🙂

Programavimas

I have just started working with a Gradle project, that needs a simple way of incrementing its version. And I came up with a simple solution. Project’s version is following the standard: major.minor.patch. So, first of all create a version.properties file that looks…

Programavimas

In order to run GitLab and GitLab Runner on your local PC, simplest way is to create docker-compose.yml file and add the following content to it: Once it’s up and running, you can access GitLab via http://localhost/ by using username root and the…

Programavimas

Programavimas

One day I got tired of entering ssh mycoolusername@my.awesome.server.com Because my username is the same on all the servers. So, what I did – I’ve created a file and added a default username for the servers: $ cat ~/.ssh/configCanonicalizeHostname yesHost *.my.awesome.server.com User mycoolusername…

Programavimas