author avatar

iffyuva

Fri Apr 12 2019

https://github.com/sosedoff/pgweb : A great way to connect to postgres without opening port 5432 to general public.

We can even add this to Dockup, and boom everyone has access to postgres container and can fiddle directly

author avatar

iffyuva

Fri Apr 05 2019

How to extract a nested yaml key from a file and write its contents to another file?

js-yaml <yaml-file> | jq ".topkey.nestedkey" | js-yaml > output.yaml

author avatar

revath

Thu Apr 04 2019

To avoid diff of package-lock.json in git show: git show <commithash> ':(exclude)package-lock.json'

author avatar

goromlagche

Fri Mar 29 2019

if you use kaminari(or any pagination) eventually you might want to move to https://github.com/kaminari/kaminari#paginating-without-issuing-select-count-query pagination with just prev and next button. When you have a lot of records, that extra count query might add 100-200ms on page load.

author avatar

iffyuva

Sun Mar 10 2019

To determine public IP address, use this command curl -s checkip.dyndns.org

author avatar

revath

Fri Mar 08 2019

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

Showing 42 to 44 of 66 results