Category: <span>Programavimas</span>

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

You create a tag in GIT, accidentally pushed it into remote repository. But after some time you understood that you don’t want it. So, how can you remove a tag in GIT? You can do this easily by:git tag -d NAME_OF_YOUR_BAD_TAGgit push origin…

Programavimas

You have edited one file in GIT version control system and you want to reset (revert) changes in this file. How can you do that? Everything is simple: use checkout — in the command line. For instance:

Programavimas