Skip to content

Instantly share code, notes, and snippets.

View luckygoswami's full-sized avatar
😽
shaping ideas with keystrokes

Lucky Goswami luckygoswami

😽
shaping ideas with keystrokes
View GitHub Profile
@luckygoswami
luckygoswami / remote-debugging.md
Last active November 25, 2025 10:37
A quick guide to enabling and using Chrome's remote debugging feature with the --remote-debugging-port flag.

A Guide to Chrome's Remote Debugging Feature

Ever wanted to control your browser with a script without losing your current login session? Or debug a tricky issue on a colleague's machine from your own desk? Chrome has a powerful built-in feature for this called remote debugging.

This guide explains what it is and how to get started.


What is Remote Debugging? 🤔

@luckygoswami
luckygoswami / access-localhost-on-mobile.md
Created September 13, 2025 17:23
Guide to accessing your development machine's localhost URL exactly as 'localhost' on mobile devices, including methods like adb reverse and network configurations.

How to Access Exactly localhost URL on Mobile (Without Using IP)

By default, entering localhost in a mobile browser points to the mobile device itself, not your development machine running the server. To open exactly http://localhost:<port> on your mobile browser and connect to your PC's server, you need special setup since mobile and PC localhost are different.


Why does this happen?

  • localhost always refers to the local device in networking.
  • Your PC and mobile are different devices, so localhost on mobile is the mobile device itself.
@luckygoswami
luckygoswami / disable_keyboard.reg
Created May 22, 2025 03:51
Enable/Disable Laptop Keyboard via Windows Registry
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt]
"Start"=dword:00000004
@luckygoswami
luckygoswami / migrate-gpg-key.md
Created May 5, 2025 17:59
Step-by-step guide to transfer your existing GPG key to a new machine for Git commit signing. Covers key export/import, Git configuration, and GitHub setup for seamless migration.

Title: 🔑 How to Import and Configure an Existing GPG Key on a New System

Description:

Step-by-step guide to transfer and set up an old GPG key (for Git commit signing) on a new machine.


1. Export Keys from Old System

🚀 React Refactoring Checklist (Scalability & Maintainability)

🔍 Code Structure

  • Adopt feature-based or domain-driven folder structure
  • Colocate related files (component + hooks + styles)
  • Avoid deep nesting (>4 levels is a red flag)
  • Move reusable UI to shared/ui/ (buttons, modals)

⚛️ Components

  • Split monolithic components into smaller ones
@luckygoswami
luckygoswami / readme.md
Created February 9, 2025 17:29
Initialise shadcn

Setting up shadcn in a React project with Vite, Tailwind CSS, and TypeScript

Steps:

  1. Create a new Vite project with React:

    npm create vite@latest . -- --template react
@luckygoswami
luckygoswami / vite-proj.sh
Last active December 20, 2024 19:35
bash command to create and run the Vite project in current directory within a single command
npm create vite@latest . -- --template react && npm i && npm run dev
irm https://get.activated.win | iex
{"name":"vs profile","settings":"{\"settings\":\"{\\r\\n \\\"workbench.colorTheme\\\": \\\"Atom One Light\\\",\\r\\n \\\"editor.minimap.enabled\\\": false,\\r\\n \\\"editor.stickyScroll.enabled\\\": false,\\r\\n \\\"[javascript]\\\": {\\r\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\r\\n },\\r\\n \\\"[html]\\\": {\\r\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\r\\n },\\r\\n \\\"[css]\\\": {\\r\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\r\\n },\\r\\n \\\"editor.wordWrap\\\": \\\"on\\\",\\r\\n \\\"[jsonc]\\\": {\\r\\n \\\"editor.defaultFormatter\\\": \\\"esbenp.prettier-vscode\\\"\\r\\n },\\r\\n \\\"git.enableSmartCommit\\\": true,\\r\\n \\\"git.confirmSync\\\": false,\\r\\n \\\"liveServer.settings.donotShowInfoMsg\\\": true,\\r\\n \\\"editor.parameterHints.enabled\\\": false,\\r\\n \\\"extensions.autoCheckUpdates\\\": false,\\r\\n \\\"update.mode\\\": \\\"manual\\\",\\r\\n \\\"workbench.startupEditor\\\": \\\
@luckygoswami
luckygoswami / keybindings.json
Last active November 15, 2024 18:12
vs code custom keyboard shortcuts
[
{
"key": "ctrl+alt+s",
"command": "code-runner.run"
},
{
"key": "ctrl+alt+n",
"command": "-code-runner.run"
},
{