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
$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-
Published
Author
user-image
Shubham
cat k8s.yaml | kubectl apply -f-
Published
Author
user-image
Shubham
cat k8s.yaml | kubectl apply -f-
Published
Author
user-image
Vinu
CEO
revive stuck terminals : eg - In case you loose your ssh connection and your terminal is stuck, but would like to continue on the same terminal without closing it.

Code

press "(esc) (enter) (shift + `) (.)" ignore brackets :

Published
Author
user-image
Goromlagche
In ActiveRecord when using default scope filters, be careful in left_joins queries. As the scope would show up the join on clause.

Showing page 52 of 83

Ready to Build Something Amazing?

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