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.
May 8, 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-automaticallyatul
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
https://gist.github.com/goromlagche/0c53ef2cbee35a14dee34e9029c71116
goromlagche
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
We can even add this to Dockup, and boom everyone has access to postgres container and can fiddle directly
iffyuva
Apr 5, 2019
How to extract a nested yaml key from a file and write its contents to another file?
js-yaml | jq ".topkey.nestedkey" | js-yaml > output.yaml
iffyuva
Apr 4, 2019
To avoid diff of package-lock.json in
git show
: git show ':(exclude)package-lock.json'
revath
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.
goromlagche
Mar 10, 2019
To determine public IP address, use this command
curl -s checkip.dyndns.org
iffyuva
Mar 8, 2019
jest: When using
mockRejectedValue
with axios the data should be inside response.data
. Eg: mockRejectedValue({ response: { data: {errors: []} }, status: 400, statusText: "Bad Request" })
revath
Showing 53 to 55 of 77 results
Ready to Build Something Amazing?
Codemancers can bring your vision to life and help you achieve your goals
- Address
2nd Floor, Zee Plaza,
No. 1678, 27th Main Rd,
Sector 2, HSR Layout,
Bengaluru, Karnataka 560102 - Contact
hello@codemancers.com
+91-9731601276