Install gems into lambda function

When we are working on Ruby lambda function and if your lambda is depends on some external libraries(gems) which is not a default part of lambda, then it will give you error cannot load such file -- <gem name>

In my lambda function I want to implement newrelic_rpm gem to…

Set up continuous integration with GitHub action for ruby on rails application.

Continuous integration with GitHub Actions

Continuous integration(CI) allowed you to test your code automatically whenever there is any commit towards the feature/main branch or any pull request comes in. This is great because sometimes you forgot to run tests cases locally before pushing the changes.

To set up GitHub Actions for our project we’ll need…

A simple way to encrypt values


MessageEncryptor is a simple way to encrypt values which get stored somewhere you don’t trust. The ciphertext and initialization vector are base64 encoded and returned to you. For more details, you can check out the official ruby doc here

Upgrading from Rails 4 to Rails 5 we also need to…

Cross-site request with ‘SameSite=None’

Photo by Wes Hicks on Unsplash

What’s ‘SameSite'?

SameSite is the new recommended way to keep your website secure. It’d make CSRF even more secure. The SameSite attribute allows servers to assert that a cookie shouldn’t be sent along with cross-site requests. This change provides some protection against cross-site request-forgery attacks.

In simple terms, cookies that don’t include…

Docker on Mac can be a resource hog but it doesn’t have to be

Photo by Md Mahdi on Unsplash

If you’ve moved your development environment to Docker and you’re on a Mac, you might have noticed your web application stacks are slower than another native environment you’ve been used to. The fact of the matter is, Docker for Mac has terribly slow IO performance compared to on Linux machines.

Rohit Lingayat

Ruby on Rails | React | AWS | Solr | JQuery

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store