Changing the passenger max process

Adjust to balance the performance vs. resources

Guide Ruby Passenger Nginx

Install new version of Ruby via rbenv

For mac and homebrew & For ubuntu

Snippet Ruby rbenv

Integrate Google Sign-In

Using Google OAuth2 with Omniauth

Snippet Ruby Google Oauth2 Omniauth

Handling weekdays, weekends and public holidays

By using various built-in methods in Ruby and Rails

Snippet Ruby Rails Date Time

Define .ruby-version for all your app

To prevent wrong ruby version and gems being used in a multi-apps server

Error Ruby Version Passenger

False warning for Style/AndOr cop when used as chaining operation

"and" and "&&" does not always give equivalent result

Error Ruby Rubocop

Use rails 5.1 encrypted secrets

To protect production credentials even if they are committed into git

Guide Ruby Rails Secret Encryption

Use .gitignore to prevent committing unwanted files

Logs, temporary files, credentials are not supposed to be committed into git repository

Snippet Ruby Git Gitignore

10 Common Rubocop Catches

Rubocop is a powerful static code analysis tool for Ruby Language

Article Ruby Rubocop Coding standard

Reconstruct query string from request

For string compare or generate signature hash

Snippet Ruby Rails Controller

Exception and error handling in Ruby

Logging to file and Error reporting via Bugsnag

Article Ruby Exception Bugsnag Logging

Share a private S3 object

Via temporary presigned URL

Snippet AWS S3 Ruby SDK

Uploading text string or file to S3

Via AWS Ruby SDK v2

Snippet AWS S3 Ruby SDK

RSA public key encryption and private key decryption

With Ruby and Openssl

Guide Ruby OpenSSL Encryption Public Key

Setting up ruby on rails on Ubuntu

Ruby, Bundler, Rails, and Database

Guide Ruby Rails Setup Ubuntu