docs.gitlab.com

Use rules to include or exclude jobs in pipelines. Rules are evaluated in order until the first match. When a...

You can run bundle install in parallel. This might be helpful for development, where you often install many new gems...

makandra dev

Git has the concept of hooks: bash scripts that are invoked at certain points in the Git lifecycle. One handy...

DevOps Curriculum

...Worker Node auch eine Control Plane sein? Kubernetes hat als Feature Self-Healing. Was bedeutet das und wie wird das umgesetzt? Wie kann kontrolliert werden, ob eine Konfigurationsänderung erfolgreich deployed...

...kommunizieren Worker Nodes, wenn sie mit der API von Kubernetes sprechen möchten? Was ist bei selbst gemanagten Kubernetes zu beachten, damit das zuverlässig funktioniert (z.B. wenn eine Node offline geht...

Attaching files to a field that is handled by Carrierwave uploaders (or maybe any other attachment solution for Rails) in...

If your postgres database is only accessible from inside a kubernetes cluster, e.g. if it's configured in AWS RDS...

makandra dev

This may be awkward to set up, but will work once you're done. Fun facts:

Recently we detected a memory leak in one of our applications. Hunting it down, we found that the memory leak...

What is a Cookie? Google it if you do not know. How are cookies transferred between your browser and...

Sidekiq 7 adds a new feature called capsules. Use cases: a chrome queue limited to 1 for e.g. PDF processing...

s keeps saturation unchanged. calc(100 - l) inverts lightness. For example, 0% becomes 100%, and 100% becomes 0%. Example usage .demo { --inverted-color: hsl(from currentColor calc(h...

developer.mozilla.org

...methods usually don't print background colors. In most cases this is the desired behavior, because you don't want to spend tons of ink printing the background of a...

makandra dev

Authentication is a special part of web applications. On the one hand, it usually is a crucial security mechanism restrict...

makandra Curriculum

Learn Enough Command Line to be Dangerous (it's in our library => Google Drive) CLI tricks every developer should...

...a? Capybara::Driver::Selenium Now the selenium driver is located by Capybara::Driver::Selenium. A better-looking approach would be: Capybara.current_driver == :selenium page.response_headers['Content-Disposition'] should be page.response.headers...

...file_inside' do let(:path) { '/opt/invoices/' } it 'should send a requested file that lives beneath the given directory' do subject.should_receive(:send_file).with('/opt/invoices/123.pdf', {}) subject.send :send_file_inside, path...

makandra dev

This card shows you how to center a float horizontally in CSS. Also: find out what techniques are available for...

...lot of logic and callbacks for a particular form screen, but then the model becomes a pain in tests, where all those callbacks just get in the way. Or we...

...have different forms for the same model but they need to behave very differently (e.g. admin user form vs. public sign up form). There are many approaches that promise help...

We recently migrated a Rails application from yarn to npm. We decided to go this step instead of upgrading to...

If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...

...GA configurable without changing anything in the application's code base (and much more beyond, see below). Only prefer GTM if the customer requests it, or if he is updating...

...his tracking requirements frequently. The idea behind GTM The "tag" in "Google Tag Manager" has nothing to do with HTML tags, nor with word tags or tag clouds. In the...

...It's much easier to detect the current Rails environment instead. You might be better of checking against the name of the current Rails environment. To do this, store the...

github.com

Ever needed to use a global variable in Rails? Ugh, that's the worst. If you need global state, you...

Recent IRB versions include a multi-line autocomplete which may be helpful to novice users but can be distracting.