Skip to content

Instantly share code, notes, and snippets.

View bathivinod's full-sized avatar

Vinod Bathi bathivinod

  • Pennywise solultion pvt ltd
  • Hyderabad, India
View GitHub Profile
@bathivinod
bathivinod / README.md
Created July 8, 2025 03:58
Let's Encrypt SSL with Cloudflare DNS Validation Guide

Let's Encrypt SSL with Cloudflare DNS Validation

Requirements Recap

Your Requirements:

  • 🔒 Ports 80/443 are firewalled to Cloudflare IPs only
  • ☁️ You're behind Cloudflare, so Let's Encrypt (Certbot) cannot reach port 80 directly
  • 🌐 You're using Apache, not Nginx
  • You already have a self-signed or manually managed cert in use
@bathivinod
bathivinod / README.md
Last active June 24, 2025 09:34
This guide explains how to securely create a new user with sudo permissions on a Linux EC2 instance

👤 Adding a New EC2 User with SSH Key Access and Passwordless Sudo

This guide explains how to securely create a new user on a Linux EC2 instance, configure SSH access using a .pem key file, and enable passwordless sudo access.


🔧 Prerequisites

  • Access to an existing EC2 instance
  • A .pem private key file (e.g., .pem)

Cursor's Memory Bank

I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.

Memory Bank Structure

The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:

flowchart TD
@bathivinod
bathivinod / README.md
Created June 13, 2025 18:27
How to install and use git-filter-repo on Windows

🧹 Removing Large Files from Git History with git-filter-repo

📋 Overview

This guide provides instructions for installing and using git-filter-repo on Windows to remove large or unwanted files from your Git repository history. This is particularly useful for removing files like:

  • 📦 .exe files
  • 📥 .zip archives
  • 🔧 Terraform artifacts
  • 📁 Other large binary files
@bathivinod
bathivinod / README.MD
Last active June 13, 2025 18:30
This repo is used to setup multiple git accounts

Multi-Git Account Setup on Windows (GitHub + Bitbucket)

This repository demonstrates how to configure and manage multiple Git accounts (GitHub and Bitbucket) on a single Windows machine using separate SSH keys and SSH host aliases.

🔐 Git Accounts Used

  • GitHub
    • Email: abc@gmail.com
    • SSH Key: ~/.ssh/id_rsa_github
# Create EKS Cluster
eksctl create cluster --name=observability \
--region=us-east-1 \
--zones=us-east-1a,us-east-1b \
--without-nodegroup
eksctl utils associate-iam-oidc-provider \
--region us-east-1 \
--cluster observability \
@bathivinod
bathivinod / cert.conf
Last active July 19, 2023 18:05
Create Valid SSL in localhost for XAMPP
[ req ]
default_bits = 2048
default_keyfile = server-key.pem
distinguished_name = subject
req_extensions = req_ext
x509_extensions = x509_ext
string_mask = utf8only
[ subject ]
@bathivinod
bathivinod / untrackfiles_git.md
Created July 10, 2023 12:37
How to untrack a file that has already been committed to repo after adding to .gitignore

How to Untrack a File That Has Been Committed

It is IMPORTANT to note that you MUST COMMIT ALL PREVIOUS CHANGES BEFOE CONTINUING

  1. Remove everything from Local Repo git rm -r --cached . or if you are untracking a specific file(s) git rm -r --cached name_of_file

  2. Add back all untracked files

@bathivinod
bathivinod / nginx.conf
Created April 1, 2023 12:20 — forked from bbachi/nginx.conf
Jenkins
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.
@bathivinod
bathivinod / nginx.conf
Created March 31, 2023 18:03 — forked from bbachi/nginx.conf
jenkins
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic.