atul
Wed May 08 2019
Kubernetes jobs can be configured with ttlSecondsAfterFinished
to clean up finished jobs automatically. - https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#clean-up-finished-jobs-automatically
goromlagche
Sat Apr 27 2019
a small elisp snippet to generate class name for ruby files. can be modified for other langs too https://gist.github.com/goromlagche/0c53ef2cbee35a14dee34e9029c71116
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
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
revath
Thu Apr 04 2019
To avoid diff of package-lock.json in git show
: git show <commithash> ':(exclude)package-lock.json'
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.
iffyuva
Sun Mar 10 2019
To determine public IP address, use this command curl -s checkip.dyndns.org
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