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
Akash
"you can use serveo.net to get reusable public endpoints. Example: ssh -R github:80:localhost:4000 serveo.net"
Published
Author
user-image
Emil
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


elixir

# 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()

Published
Author
user-image
Revath
bash stands for : Bourne Again SHell
Published
Author
user-image
Revath
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
Published
Author
user-image
Iffyuva
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?

Showing page 60 of 83

Ready to Build Something Amazing?

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