TILs - Fueling Curiosity, One Insight at a Time

At Codemancers, we believe every day is an opportunity to grow. This section is where our team shares bite-sized discoveries, technical breakthroughs and fascinating nuggets of wisdom we've stumbled upon in our work.

Published
Author
user-image
Ananth
even if you have configured a gitlab-runner for gitlab-ci and the runner’s ssh keys or api keys are used to clone the repo into the runners environment, if the build is triggered by a person who is not the member of the project you will get below error.

Code

fatal: remote origin already exists.
 Clean repository
 remote: You are not allowed to download code from this project.
 fatal: unable to access 'https://gitlab-ci-token:[MASKED]@example.gitlab.com/project.git/': The requested URL returned error: 403
 ERROR: Job failed: exit code 1


The error is slightly miss leading as it says gitlab-ci-token in it, but it is occurred due to the triggering entity not being member of the project. Even if the person who triggered the project has owner access in Gitlab and is not a member of the project, you will still see this error.
Published
Author
user-image
Goromlagche
git log has grep.

git log --grep=“something something”

also can do some cut head etc to read the whole commit(which generally is the goal) at once
$git log --grep=“something something” | head -1 | cut -d” ” -f2 | xargs -I{} git show {}
Published
Author
user-image
Goromlagche
to debug statsd servers, this is a helpful command, echo "your.statsd.counter:1|c" | nc -u -w 1 your.statsd.host.com 8125
Published
Author
user-image
Akshay

Code

+----------+---------+---------------------+------------------------+-------------+
|          | context | matched docs scored | matched docs in result | exact match |
+----------+---------+---------------------+------------------------+-------------+
| must     | query   | yes                 | yes                    | yes         |
| filter   | filter  | no                  | yes                    | yes         |
| should   | query   | yes                 | yes                    | no          |
| must_not | filter  | no                  | no                     | yes         |
+----------+---------+---------------------+------------------------+-------------+


Published
Author
user-image
Revath
mac set custom default folder for screenshots defaults write com.apple.screencapture location /path/to/Screenshots

Showing 50 to 52 of 82 results

Ready to Build Something Amazing?

Codemancers can bring your vision to life and help you achieve your goals