Skip to content

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.

  1. Codemancers
    https://github.com/sosedoff/pgweb : A great way to connect to postgres without opening port 5432 to general public.\r
    \r
    We can even add this to Dockup, and boom everyone has access to postgres container and can fiddle directly
  2. Codemancers
    How to extract a nested yaml key from a file and write its contents to another file?\r
    \r
    js-yaml <yaml-file> | jq ".topkey.nestedkey" | js-yaml > output.yaml
  3. Codemancers
    To avoid diff of package-lock.json in git show: git show <commithash> ':(exclude)package-lock.json'
  4. Codemancers
    To determine public IP address, use this command curl -s checkip.dyndns.org
  5. Codemancers
    jest: When using mockRejectedValue with axios the data should be inside response.data. Eg: mockRejectedValue({ response: { data: {errors: []} }, status: 400, statusText: "Bad Request" })
  6. Codemancers
    When using mockRejectedValue with axios the data should be inside response.data. Eg: mockRejectedValue({ response: { data: {errors: []} }, status: 400, statusText: "Bad Request" })
  7. Codemancers
    echo $PATH | sed -e $'s/\\:/\\\\\ /'g or echo $PATH | tr ":" "\ " to see each entry in $PATH in separate line.
  8. Codemancers
    use :focus-within to keep the parent element visible when focus is on child. Helpful on making dropdown menu.
  9. Codemancers
    in rails unscope doesnt used to work with joins/left_joins, but recently has been fixed and backported to 5.1 and 5.0
  10. Codemancers
    "you can use serveo.net to get reusable public endpoints. Example: ssh -R github:80:localhost:4000 serveo.net"
  11. Codemancers
    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\r
    \r

    Code

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

Showing page 30 of 42

Your competitors are already using AI. The question is how fast you want to unlock the value.

  • Don't know where to start?

    AI is everywhere but it's unclear which investments will actually move your metrics and which are expensive experiments.

  • Your data isn't ready

    Most AI projects fail at the data layer. Pipelines, quality, access all need work before LLMs can deliver value.

  • Internal teams are stretched

    Your engineers are shipping product. They don't have capacity to also become AI specialists with production-grade experience.

  • Legacy systems block everything

    Aging, undocumented codebases make AI integration slow, risky, and expensive. They need to move first.

Don't worry. We've got you covered.

Start with the audit.

Book a free discovery call