Attaching files to a field that is handled by Carrierwave uploaders (or maybe any other attachment solution for Rails) in...
Sometimes you need to access a dev server running on localhost from another machine that is not part of the...
RSpec Rails can automatically mix in different behaviors to your tests based on their type tag, for example enabling you...
Proxy caching is a good feature to serve your publicly visible application content faster and reduce load on your servers...
Rack::SteadyETag is a Rack middleware that generates the same default ETag for responses that only differ in CSRF tokens...
Elasticsearch defaults to go into readonly mode when you run low on disk space (< 95%). You might then see an...
Some users might use Adblock Plus or similar browser plugins to reduce the number of ads displayed. If you run...
A flaky test is a test that is often green, but sometimes red. It may only fail on some PCs...
If you want Sidekiq to be able to talk to Redis on staging and production servers, you need to add...
Within development and test environments, Rails is usually configured to show a detailed debug page instead of 404s. However, there...
This RailsCast demonstrated a very convenient method to activate VCR for a spec by simply tagging it with :vcr.
Bookmarks for directories will be most helpful if you are forced to work in deeply nested projects. Then it's...
With cd .. you can navigate one directory up from the one you are at now. If you use that a...
Rails has the handy controller method send_file which lets us download files easily. We can decide whether the file...
It is generally discouraged to load your JavaScript by a tag in the : The reason is that a tag will pause the DOM parser until the script has loaded and executed. This will delay the browser's first contentful paint. A much better default is to load your scripts with a tag: A deferred script has many...
This bookmarklet grabs a PivotalTracker story title, transforms it into a valid git branch name and automatically prepends your initials...
It seems like changing the HTTP_ACCEPT_LANGUAGE is not possible for a headless chrome. On Ubuntu the headless Chrome...
Formerly 301 (Moved Permanently) and 302 (Found) were used for redirecting. Browsers did implement them in different ways, so since...
When using RestClient to make an HTTP request, it will raise an exception when receiving a non-successful response.
Accessing other repositories in Gitlab CI is not straight forward, since the access rights of the current pipeline might not...
The Node Version Manager allows installing multiple NodeJS versions and switching between them. By default, it does not automatically switch...
When dealing with external data sources, you may have to deal with improperly encoded strings. While you should prefer deciding...
Webpack builds can take a long time, so we only want to compile when needed. This card shows what will...
Installing gems on a server that has no access to the internet (especially rubygems.org) requires to bundle the gems into...