author avatar

revath

Fri Mar 08 2019

When using mockRejectedValue with axios the data should be inside response.data. Eg: mockRejectedValue({ response: { data: {errors: []} }, status: 400, statusText: "Bad Request" })

author avatar

revath

Tue Mar 05 2019

echo $PATH | sed -e $'s/\:/\\\n/'g or echo $PATH | tr ":" "\n" to see each entry in $PATH in separate line.

author avatar

revath

Tue Mar 05 2019

use :focus-within to keep the parent element visible when focus is on child. Helpful on making dropdown menu.

author avatar

goromlagche

Wed Feb 20 2019

in rails unscope doesnt used to work with joins/left_joins, but recently has been fixed and backported to 5.1 and 5.0

author avatar

akash

Thu Feb 14 2019

"you can use serveo.net to get reusable public endpoints. Example: ssh -R github:80:localhost:4000 serveo.net"

author avatar

emil

Wed 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 <cookie here>
# 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@<ip>")
# Start observer locally
:observer.start()

Showing 43 to 45 of 66 results