makandra Operations
redis.io

Hint You're not able to control which redis replica will chosen for the failover. Connect to your sentinel instance...

When your controller action raises an unhandled exception, Rails will look at the exception's class and choose an appropriate...

By convention, common protocols use a defined port, like 80 for HTTP or 443 for HTTPS. You can use nmap...

github.com

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

kb.wisc.edu

When receiving a new SSL-Certificate for an existing SSL-key it should be checked that they match cryptographically.

to create a Gallery that has a name and has_many :images, which in turn have a...

makandra dev

Connect to your IMAP server. If you have SSL enabled: openssl s_client -connect your-server:993 if your server...

When you have a localized website, you may want to redirect users to their preferred language when they visit the...

github.com

fake_stripe spins up a local server that acts like Stripe’s and also serves a fake version of Stripe.js...

When dealing with time zones in Rails, there is one key fact to keep in mind: Rails has configurable time...

developer.mozilla.org

When building a form with a file select field, you may want to offer your users a live preview before...

Instead of using this hack you might want to use MariaDB 10.x which can work with both old and...

ombulabs.com

Tool to show you which gems are slow to load: ➜ git:(master) ✗ bundle exec bumbler [################################################# ] (49/65) travis-lint...

jQuery's deferred objects behave somewhat like standard promises, but not really. One of many subtle differences is that there...

To upload a file via AJAX (e.g. from an ) you need to wrap your params in a FormData object.

makandra Operations

If you want to perform a failover on another haproxy backend server this is the way you should do it...

nginx.org

If you want to configure your nginx to drop connections to a specific location, you can do so by responding...

A HTTP 302 Found redirect to PATCH and DELETE requests will be followed with PATCH or DELETE. Redirect responses to...

To install gems Bundler needs to be able to talk to https://api.rubygems.org. If you are behind a proxy you...

makandra dev

Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo...

github.com

Note The maintenance mode is enabled on all application server as soon as the file /public/system/maintenance.html is present. Installation

techblog.netflix.com

You login to a Linux server with a performance issue: what do you check in the first minute? uptime

litmus.com

You know that layouting HTML e-mails is terrible. For more fun, check Litmus' list of top 10 e-mail...

The nokogiri gem provides different packages for several platforms. Each platform-specific variant ships pre-built binaries of libxml2, e.g...