You type fast. One more function, one more docstring, one more test. You run ‘make test’. You see all tests green. You are ready to commit, push and finally start the weekend (yes, it’s late Friday afternoon and your colleagues are about to start production deployment). Oh, you suddenly realise that you named the git branch incorrectly! What’s more, you pushed the branch to the remote repository! Continue reading “How to Rename Git Branches”
Meet Joe. From time to time he works from home. He needs to connect to his linux machine in the office. Also, from time to time he connects from home to his office linux box, and from there to the Jenkins CI server provisioned in company’s development AWS cloud environment. Continue reading “How to Forward SSH Connection”
Golang is an open source programming language developed by a team at Goole. Recently Google has released latest version 1.10.3. This short tutorial will guide you how to manually install Go version 1.10.3 on your machine. We assume you run Ubuntu 16.04 LTS operating system. Continue reading “How to Install Golang 1.10.3 on Ubuntu 16.04 LTS”
One of the most essential items on modern servers is networking. Networking on CentOS7 and RHEL7 is managed by service called NetworkManager. We will show steps required to configure and validate networking. In our examples we will use two utilities: ip and nmcli. Continue reading “How to Setup Basic Networking on CentOS or RedHat Linux”
How to use CURL to post a JSON payload to a REST API endpoint? Continue reading “POST JSON Data with CURL”
Many new programmers who started learning, working, and playing with Python ask a question about progression paths. What should I learn now, what library, packages, techniques should I focus on to dive deeper in this beautiful language.
Let’s have a look at examples how to manage software packages from the command line interface. As we run CentOS we will use yum and rpm utilities. Continue reading “How to Run Basic RPM and Yum Queries”
To create a
tar.gz archive from a given folder we can use the following command:
$ tar -zcvf <archive-name>.tar.gz <source-folder-name>
Minimal Python examples of how to convert
bytes and vice versa.
Let’s start Python REPL and experiment.
$ python3 Python 3.7.0 (default, Jul 3 2018, 23:47:55) [Clang 9.0.0 (clang-900.0.39.2)] on darwin Type "help", "copyright", "credits" or "license" for more information.
JSON Web Token is an open standard that defines a way for securely transmitting JSON objects. The JSON object can be verified and trusted because it’s digitally signed. The JSON web tokens can be signed by using a secret with the HMAC algorithm or by public / private key pair using RSA.