Articles
-
Creating an invalidation on AWS CloudFront
Here is a simple method for invalidating files from a previous CloudFront distribution, using the AWS CLI:
-
Bundler Gem::LoadError 'You have already activated'
The following is an error from Bundler, that can occur when a Gemfile refers to one version of a gem, but the gem has been upgraded to a newer version:
-
Running Rails in production mode locally
Sometimes it’s useful to run a Rails app in production mode locally for testing purposes. This may not always be feasible depending upon the complexity of the project, but when it is, the following steps can be followed.
-
Fetching database metadata in Rails
Here’s how to retrieve information about application tables in Rails, demonstrated from the Rails console (
rails console
orrails c
): -
Counting word frequency in vim
vim does not have a method to count word frequency by default, but it is easily added in a function.