Posts

Showing posts from August, 2025

How to copy folder from windows machine to wsl

  Hi, In this post, we will see how to copy folder from windows to wsl folder. Use comand like below. Using mnt in wsl, we can access windows files cp -r "/mnt/c/Users/YourName/Downloads/SourceFolder" /home/wslusername/TargetFolder/

How to remove initial commit in Git

To revert the initial commit when it is the only commit in the repository: Remove the Git repository's history use below command rm -rf .git

List of common commit types in GIT

Image
Here’s a common list of commit types you can use:

How to forcedly remove a repository in Linux

 Hi, In this post, we will see how to remove the repository forcefully in Linux go to the repository that you wants to remove using cd command cd jsonResponseStreamableHttp Execute the below command to remove it rm -rf jsonResponseStreamableHttp Now, the folder will be removed

How to build MCP Server and use MCP Inspector in Node

Image
  Run the below 3 command to create a new node project Run the below command to add required dependencies npm install @modelcontextprotocol/sdk axios dotenv Run the below command to add dev dependencies npm install --save-dev typescript @types/node Create  tsconfig.json  file in the root of the repository and paste the below code { "compilerOptions": { "target": "ES2022", "module": "Node16", "moduleResolution": "Node16", "outDir": "./build", "rootDir": "./src", "strict": true, "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true }, "include": ["src/**/*"], "exclude": ["node_modules"]  }  Create a new folder named src in project root repository and create a file named index.ts and paste the below code  #!/usr/bin/env node ...

How to push the a repository to new repository in github

  To place (push) the cloned librehat repository from your local machine to your own GitHub account , you need to: ✅ Steps Overview: Create a new repository on GitHub (without initializing it). Change the Git remote URL to point to your GitHub repository. Push the code to your GitHub repository. 🛠️ Step-by-Step Guide: 1. Create a new repo on GitHub Go to https://github.com/new Set a repository name (e.g., librehat or something else) DO NOT initialize it with a README or license. Click Create repository 2. Go to your local librehat directory If you’ve already cloned it: cd path/to/librehat 3. Remove the existing remote (if any) git remote remove origin (If it gives an error, it likely means no remote was set yet — that’s fine.) 4. Add your GitHub repo as the new remote git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO_NAME.git Replace: YOUR_USERNAME with your GitHub username YOUR_REPO_NAME with the repo name you just cre...

How to install librechat in local system using docker

Image
 Hi, we know libre chat is open source and it has MIT license LibreChat/LICENSE at main · danny-avila/LibreChat · GitHub In this post, we will see how to install libre chat in local system using docker. Step 1: I have downloaded and installed docker in my system and completed the installation set up and logged in with my email address. my docker application opened like below. Now, go to your visual studio and clone the libre chat from git. use command  cd librechat to move into the librechat repository Use below command to copy the data of .env.example file content into .env file Similarly, we can copy librechat.yaml file using below command Now run docker compose up -d command to run this application in docker container. Now, the librechat started like below In the url localhost:3080, you can access the librechat url. Singup in the login page and login. Once login you can use the librechat. To stop the libre chat application running in docker, use below command Thank you.