-
Switching to main/master branch easily
Have you ever had this problem, when trying to do git checkout master and receiving an error that such branch does not exist ? That's because some projects have switched to a new main branch and other projects are too old and nobody is moving them to main. Remembering which project…
-
Measuring elapsed time in milliseconds in bash
I was working on a Telemetry project in my company and I had to instrument some of our bash scripts with code that would measure elapsed time of script execution. You can easily achive this with the following code calculate_duration() { # Start time in nanoseconds start_time=$(date +%s%N)…
-
Cmd+Shift+A ( Find Action ) opens Terminal with some weird error in Intellij product
As someone who uses Jetbrains products a lot, it can be really annoying when I try to use the "Cmd + Shift + A" shortcut to open the "Find Action" menu and a random terminal window pops up with some gibberish error message. Every time I get a…
-
Running Jest tests in parallel in Gitlab with multiple jobs
I've been working a lot lately with Jest tests. Some projects had 1k+ of Jest unit tests. Another project was using Jest for running integration and E2E tests. In both cases we wanted to get feedback on CI as fast as possible. Our initial solution was following: Split tests into…
-
Fixing "The following signatures couldn't be verified because the public key is not available: NO_PUBKEY: %s" error
I was recently trying to build an old Docker container for one of our projects and I faced this error: #7 10.88 W: GPG error: http://apt.datad0g.com stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY {{key}} #7 10.…
-
How to use your crypto.com card with Apple/Google/Samsung pay and get cashback everytime
I'm a big fan of cashback. I really like how it works in Ukraine with Monobank and I do like the credit card system in US where you can jump from one card to another depending on cashback value. It's like a treasure hunt in a way :) Well, it appears…