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
Emil
Sometimes we may need to create a new github/bitbucket account for a new client project. Because we've already linked out laptop's SSH key to our original account, we can't link it again to this new account. In such cases, instead of using tools to switch ssh keys, you can generate a keypair just for this project and set an environment variable GIT_SSH_COMMAND='ssh -i new_ssh_keys_dir/id_rsa' and run git commands like usual. Bonus tip: Use direnv to automatically load this environment variable when navigating to the project directory.
Published
Author
user-image
Emil
You can create a multiline regex in Elixir using r""" for example:


```

assert yml_file_content =

~r"""
foo:
environment:
- VIRTUAL_HOST=[a-z]{10}.127.0.0.1.xip.io
bar:
environment:
VIRTUAL_HOST: [a-z]{10}.127.0.0.1.xip.io
"""

```
Published
Author
user-image
Yuva
Co-founder
from ps man pages, if you want to list pids of particular process just use ps -C -o pid=. Damn handy when it comes to looping and killing processes

Showing 77 to 79 of 82 results

Ready to Build Something Amazing?

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