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
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
Published
Author
user-image
Iffyuva
This site https://imageonline.co/ is very handy to manipulate images online without searching for imagemagick commands
Published
Author
user-image
Goromlagche
$stdout.sync = true

this helps if you are trying to write a tool which pipes to another command. the other command will be able to process the output immediately, as no buffer and periodic flush is involved.
eg. cat rules > ruby rule_engine.rb | python calculate_tax.py

Also ARGF, sort of like a streaming STDIN. pretty cool, cause of the streaming.
Published
Author
user-image
Shubham
cat k8s.yaml | kubectl apply -f-
Published
Author
user-image
Shubham
cat k8s.yaml | kubectl apply -f-

Showing 51 to 53 of 82 results

Ready to Build Something Amazing?

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