mysqltuner.pl

This Perl script will run diagnostics on your MySQL database and recommend changes to your MySQL configuration.

When using RestClient to make an HTTP request, it will raise an exception when receiving a non-successful response.

To offer files for download, use send_file. def download(file) send_file file.path, :disposition => 'attachment' end

Edit /etc/default/bind9 and change OPTIONS="-u bind" to OPTIONS="-u bind -d 50 -g" Restart BIND and you'll see...

SSHKit 1.9.0 might fail with the following error, when trying to deploy a Rail application. Upgrading the gem to version...

.../home/foobar/Downloads/RDSCli-1.4.007/bin/rds-modify-db-parameter-group utf8 --region eu-west-1 --aws-credential-file .aws-credential.txt \ --parameters="name=character_set_server, value=utf8, method=immediate" \ --parameters="name=character_set_filesystem, value=utf8, method=immediate" \ --parameters="name...

...method=immediate" \ --parameters="name=character_set_results, value=utf8, method=immediate" \ --parameters="name=collation_server, value=utf8_general_ci, method=immediate" \ --parameters="name=collation_connection, value=utf8_general_ci, method...

makandra dev

The information in this card is only relevant for Rails 2.3-era apps. This note gives a quick introduction into...

...body), an external API may still force you to send one. Angular's $http service will strip that header when the request data (body) is blank. [1] This is possibly...

Sometimes you need to monitor a connection from your machine to a specific, single host or network in order to...

S3cmd is a free command line tool and client for uploading, retrieving and managing data in Amazon S3. S3cmd reads...

Generate a password htpasswd -Bn firstname.lastname This will ask you for a password and use bcrypt (-B, more secure) and...

Situation: You want to write a spec for a function inside an Angular service. This function at some point makes an API request and acts upon response. Notably, your Angular...

...Working test setup # Capitalized expressions are intended to be replaced with YOUR values describe 'SERVICE', -> beforeEach -> module 'MODULE' module ($urlRouterProvider) -> # Prevent uiRouter's initialization, i.e. do not sync the current...

...call(worker, job_options, queue) tags = [worker.class.name, worker.jid] Rails.logger.tagged(*tags) { yield } end end Sidekiq.configure_server do |config| config.server_middleware do |chain| chain.add RailsLoggerSidekiqServerMiddleware end end Note that the 2nd argument...

Travis CI is a free continuous integration testing service. However, it is really fragile and will break more than it will work. If you choose to use it anyway, learn...

You may encounter problems with passenger starting an application with an updated rails. If you find an error like this...

github.com

As we get ready to upgrade our servers I thought it’d be a good time to upgrade our deployment process. Currently pushing out a new version of GitHub takes...

...upwards of 15 minutes. Ouch. My goal: one minute deploys (excluding server restart time...

makandra dev
juggernaut.rubyforge.org

...plugin for Ruby on Rails aims to revolutionize your Rails app by letting the server initiate a connection and push data to the client. In other words your app can...

...have a real time connection to the server with the advantage of instant updates...

robots.thoughtbot.com

We recently decided our CI server needed an overhaul. I really enjoyed Integrity as a build server, but after trying out Hudson it’s hard to say I want to...

In Capistrano 2, directories in shared_children used to be symlinked to the shared directory during the finalize_update task...

If you're using Paperclip to store and convert images attached to your models, processing a lot of images will...

...those. Here are some alternatives: Resort to a hack, like a flag on a service model that makes your methods behave like you are on the correct host.

In Rails 5 you can say: ApplicationController.render( :template => 'users/index', :layout => 'my_layout', :assigns => { users: @users } ) If a Request Environment is...

Setup the mirror by following the steps described here. If you want to enable OS upgrades using do-release-upgrade...

So you probably see the following error trace within your Passenger log file if you got here: