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
Atul
To debug your compiled elixir code inside a container you can run the executable file with remote_console argument to get a remote shell.
Published
Author
user-image
Atul
Kubernetes secret management - Store your AWS or any other keys, secret in kubernetes secret(kubectl get secret) base64 encoded and define an environment variable in kubernetes config to access them in your app.
https://kubernetes.io/docs/concepts/configuration/secret
Published
Author
user-image
Goromlagche
ActiveRecord has a warn_on_records_fetched_greater_than config. If you use it “config.active_record.warn_on_records_fetched_greater_than = 1500” then if you use a Model.all and the records are > 1500 it will long a warning. Generally if the row count is high, you would want to use “find_in_batches” rather than “all”. The original issue https://github.com/rails/rails/issues/16463
Published
Author
user-image
Revath
use credentials('global-cred-id') to use Jenkins credentials inside pipline Eg: DANGER_GITHUB_API_TOKEN = credentials('78c4b861-f9e8-44b8-8510-4d734ab752a0')

Showing 56 to 58 of 82 results

Ready to Build Something Amazing?

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