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.

Jan 30, 2019
you can use telepresence to connect to a k8s cluster network and do things like start a local debugging session. Here is how to use local elixir observer and debug remote pods in K8S




# Install telepresence.
# Run this command to get an IEx shell connected to the cluster
telepresence --run iex --name debug@127.0.0.1 --cookie 
# Find all nodes which are part of the cluster and their IP addresses
:inet_res.getbyname('dockup-headless', :a)
# Connect to one of the nodes
Node.connect(:"dockup@")
# Start observer locally
:observer.start()

emil
Emil
Jan 20, 2019
goromlagche
Goromlagche
Jan 20, 2019
goromlagche
Goromlagche
Jan 12, 2019
Elixir refactoring if/else using pattern matching https://gist.github.com/iffyuva/6dbc3d3657e5b1e585c2ce2d53b6c973
iffyuva
Iffyuva
Jan 12, 2019
Elixir refactoring if/else using pattern matching https://gist.github.com/iffyuva/6dbc3d3657e5b1e585c2ce2d53b6c973
iffyuva
Iffyuva
Jan 8, 2019
bash stands for : Bourne Again SHell
revath
Revath
Jan 8, 2019
when you have mulitple GPG keys use git config --local user.signingkey to set for per repo basis. To get the key id gpg --list-secret-keys --keyid-format LONG form the response first line sec 4096R/0C925B3BF9CD5924 2019-01-08 the key id will be 0C925B3BF9CD5924
revath
Revath
Jan 7, 2019
iffyuva
Iffyuva
Jan 3, 2019
In order to delete untracked files, I use this for f in $(git ls-files . --exclude-standard --others); do rm $f; done. Is there any simpler version?
iffyuva
Iffyuva
Jan 2, 2019
cp -p preserves file attributes(e.g. modification time) while copying files
goromlagche
Goromlagche

Showing 57 to 59 of 80 results

Ready to Build Something Amazing?

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