Migrate data between Redis servers
Move existing Redis data to another server by temporarily turning the target into a replica, then detaching it after synchronization.
Setting up Ubuntu Server as Virtual Machine in VMware
Ubuntu Server in VMware needs manual VM setup, VMware Tools installation, and display and keyboard configuration for a usable desktop console.
Read your mail in networks that forbid e-mail traffic
Restricted networks can block mail protocols while still allowing SSH. Tunneling the mail connection through a trusted server lets an e-mail client reach the server from localhost.
Test whether Perfect Forward Secrecy (PFS) is enabled on a server (using OpenSSL)
openssl s_client can verify whether a server supports Perfect Forward Secrecy by checking if a cipher handshake succeeds or fails.
How to fix webpack-dev-server not found
bin/webpack-dev-server can fail with Yarn's "Command "webpack-dev-server" not found" error when dependencies are missing; yarn install --check-files restores the command.
Deleting stale Paperclip attachment styles from the server
Unused Paperclip image style files can accumulate on the server after style changes, wasting storage and cluttering attachment directories.
Fix [RubyODBC]Cannot allocate SQLHENV when connecting to MSSQL 2005 with Ruby 1.8.7. on Ubuntu 10.10
RubyODBC fails to create an ODBC environment handle when connecting Ruby 1.8.7 on Ubuntu 10.10 to SQL Server 2005; rebuilding the gem with the correct unixODBC path restores connectivity.
Migrating IMAP accounts from server to server
IMAP mailbox migration between servers is often tedious with many unreliable tools; imapsync offers a practical source-based alternative for copying mail accounts.
How to downgrade Google Chrome in Ubuntu
Need to roll back Google Chrome on Ubuntu after an update breaks it; fetching an older .deb from Google’s servers can isolate the regression, but outdated browsers are risky.
Using feature flags to stabilize flaky E2E tests
Always-on UI behaviors like polling, animations, autocomplete, and lazy loading can make E2E tests flaky; feature flags disable them by default and re-enable them only where needed.
Upgrading from Capistrano 2 to 3
Capistrano 3 replaces the old DSL with Rake and SSHKit, changing task syntax, hooks, server settings, and file layout during migration from Capistrano 2.
How to make Capistrano not truncate server output
Capistrano can hide long command output with ellipses, making deployment logs harder to read. Disabling Airbrussh truncation keeps full server paths and responses visible.
Using the Facebook Graph API
Server-to-server access to the Facebook Graph API can use an app token instead of OAuth; some resources still require a user-authenticated request.
Change / Update SSL certificate for Amazon Elastic Load Balancer
Rotating an Amazon ELB SSL certificate requires IAM server certificate upload and attaching the new ARN to the load balancer listener.
Run a POP3 server on a directory of mail files with popthis
Serve a directory of generated mail files as a local POP3 mailbox for testing clients and inaction_mailer output.
MySQL Server and UTF-8 Defaults
MySQL defaults can corrupt UTF-8 exports and force manual charset settings for each new database. Setting server and client defaults to utf8mb4 prevents incorrect mysqldump output.
Missing certificates for rubygems and bundler in Ruby 1.8.7
Ruby 1.8.7 can no longer connect to rubygems.org with Rubygems 1.8.30 and Bundler 1.17.3 because of expired server certificates. Local proxying or disabling SSL verification can restore installs.
Request a gzipped response from a web server using Wget
Application servers often compress responses with gzip, but Wget downloads the uncompressed version unless Accept-Encoding: gzip is sent.
Connecting the "sequel" gem to MSSQL via ODBC
Connecting Ruby applications to SQL Server through ODBC can unblock legacy setups when native adapters fail. sequel can use an existing ODBC DSN for database access.
Using Solr with Sunspot
Running Solr with Sunspot adds Rails search, but requires local setup, reindexing, error handling, and production configuration for a separate Solr server.
Running Rails 2 apps with modern MariaDB SQL server
Rails 2 apps can break on MySQL 5.7; MariaDB 10.x is a compatible replacement for old and new applications, with gem rebuilds sometimes needed after switching.
Hide your Selenium browser window with a VNC server
Run Selenium tests in a hidden X session with vncserver, keeping the browser accessible for inspection without adding a gem.
Make Capistrano use SSH Key Forwarding
Capistrano can check out code on the target server using SSH agent forwarding instead of a separate repository key. ssh_options[:forward_agent] = true enables this, but it should be used with caution.
Run a script on the server
Set the Rails environment explicitly when running server-side scripts to avoid using the wrong database or configuration. Rails 2 uses script/runner; Rails 3 uses rails runner.