Category Archives: Howto

HMAC Basics in Go

In cryptography, a keyed-hash message authentication code (HMAC) is a specific type of message authentication code (MAC). It involves a cryptographic hash function in combination with a secret cryptographic key. As with any message authentication code, it may be used to simultaneously verify both the data integrity and the authentication of a message. Any cryptographic… Read More »

Set Auth Header Using cURL

If it comes to testing REST APIs I’m a big fan of Postman. But for quick and command line testing I always prefer to use cURL. For developing and testing protected endpoints we need to pass an authorization header. How can we do this with cURL? Example of using Bearer tokens: Example request (invalid token):… Read More »

How to Rename Git Branches

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… Read More »

How to Forward SSH Connection

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.