Hi there 馃憢

Welcome to GeekyHub.

  • GeekyHub is a place to share my thoughts, opinion and Experiences on Technologies.
Run local project on HTTPS locally

How to run any local project on HTTPS without any hassle

Modern browsers expect HTTPS. Cookies with Secure, OAuth callbacks, Service Workers, HTTP/2, and many APIs either require or work better with HTTPS. I created local-https, a simple tool to run any local project on HTTPS with a custom local domain. No browsers hacks No changing your app鈥檚 code Works on macOS and Linux GitHub: https://github.com/vikas-0/local-https What is local-https? local-https is a small Ruby CLI that: Generates trusted local TLS certificates with mkcert Maps your domain to 127.0.0.1 in /etc/hosts Runs an HTTPS reverse proxy (WEBrick) that forwards to your local app Supports multiple domains via SNI Optionally redirects HTTP (port 80) to HTTPS (port 443) You get a local URL like https://myapp.test that points to your app on localhost:3000. ...

August 21, 2025 路 3 min 路 Vikas Kumar
AsyncJob vs Thread

Unlocking Performance with AsyncJob: Specific Use Cases for I/O-Bound Operations

The Elasticsearch Scaling Nightmare Picture this: Your Rails application is humming along nicely until suddenly, user growth explodes. Great news, right? Not for our job queue. In a previous application I worked on, we faced significant challenges scaling ActiveJobs, primarily due to numerous Elasticsearch indexing and other I/O-bound tasks. As our user base grew, thousands of small jobs overwhelmed our queue, creating a perfect storm of bottlenecks despite our best efforts at dynamic worker scaling. ...

July 20, 2025 路 7 min 路 Vikas Kumar
Three proffessionals collaboration on single sheet of paper

How to Use Tiptap's Collaboration Feature with Rails Action Cable

In this post, we鈥檒l walk through setting up Tiptap鈥檚 collaboration feature with Rails Action Cable and ReactJs. Tiptap is a powerful headless editor built on ProseMirror, and when combined with Y.js, it allows for real-time collaborative editing. We鈥檒l use Mantine component library, but it鈥檚 not mandatory for this setup. If you prefer to dive directly into the code, check out the example on Github Prerequisites Ensure you have the following installed: ...

June 18, 2024 路 4 min 路 Vikas Kumar
Using any IDE on Remote developement

Seamless Remote Development with Any IDE Using Unison for Bidirectional SSH Sync

If your development environment is on a remote server, you might need to code on the remote machine itself to see the effects of your changes in real time. This scenario is fairly common these days as applications become more complex, and setting up a local development environment requires extensive configuration or mocking of the resources used in the app. In this case, you are left with very few options for code editors. Either you have to use CLI-based editors such as Vim, or you can use VSCode with the Remote SSH extension. Even with the extension, there are some issues related to code analysis and code completion. These processes have to happen on the remote machine, making your powerful local PC underutilized. And if you want to use Zed or Xcode, you are out of luck. ...

June 15, 2024 路 3 min 路 Vikas Kumar
Photo by RealToughCandy.com: https://www.pexels.com/photo/man-love-people-woman-11035380/

Stop using serverless-webpack for AWS Lambda

I see that nodejs lambda projects are built using serverless and often include serverless-webpack. It is used to implement babel and get the latest javascript syntaxes, especially module and top-level awaits. But as per this blog post, the AWS lambda environment already supports these features, so we should no longer need to use serverless-webpack. There are some cons that I face while using webpack in serverless. Code is transpiled (and optionally minified), making it challenging to debug from logs, as line numbers and function names may not be the same per your development environment. Using ESM only module is not straightforward. Such as node-fetch and d3, and the ESM-only module list is growing daily. There could also be a performance impact as the code will be converted to commonJS, and this benchmark test shows that commonsJS could perform 43% worse than ESM. There are other benefits of babel and webpack besides transpiling to commonJS. But these are mostly catered towards browsers and not serverside usage. ...

October 6, 2022 路 1 min 路 Vikas Kumar