Profile cover photo
Profile photo
Michael Grosser
74 followers
74 followers
About
Communities and Collections
View all
Posts

Post has attachment
Went through foreman/goreman/forego and all of them either did not: – support not printing the name – support killing all when one finishes – support sending signals to all children But this does:
Add a comment...

Post has attachment
We have a single project that builds our GCR/gcloud base-images, it has a lot of reuse between steps so it is nice to not have multiple repos, but locally testing the build became super long since there are so many different images. Here is a little…
Add a comment...

Post has attachment
A tiny chef snipped to install gcloud without using a package manager (to get the latest version without waiting)
Add a comment...

Post has attachment
Ensures that everyone has npm up to date without running “npm install” Ideally this should be wrapped as “npm check” command, but we use a ruby/rake based workflow anyway.
Add a comment...

Post has attachment
Hash#dig is fun, but sometimes I want to be strict … so I use dig_fetch … and dig_set to set a value without running into nil / MethodMissing errors.
Add a comment...

Post has attachment
Hardcoding the memory limit seems weird when we already define the limit via kubernetes limits … so making it just use everything available.
Add a comment...

Post has attachment
Memcached servers changing leads to a tiny split-brain scenario since some servers might read from different caches then the others … good to keep an eye on it and alert when it happens too often. Here is a tiny snippet to report when it happens.
Add a comment...

Post has attachment
Symlinked vendor/bundle results in double load errors since: rails adds the realpath of each engines lib (and various other folders) to the $LOAD_PATH bundler adds the symlinked version to the $LOAD_PATH require_relative uses the realpath which looks…
Add a comment...

Post has attachment
A simple solution to an annoying problem!
Add a comment...

Post has attachment
Compare 2 objects without having to repeat all their variables and potentially miss something, only thing dangerous is adding something like a inline method cache, which would then break equality.
Add a comment...
Wait while more posts are being loaded