Skip to content

Instantly share code, notes, and snippets.

View sandeepkv93's full-sized avatar

Sandeep Vishnu sandeepkv93

View GitHub Profile
@sandeepkv93
sandeepkv93 / opencode-ollama-setup.md
Created February 8, 2026 22:34
OpenCode Ollama setup

Setting Up OpenCode with Ollama (Local-Only)

Full guide for Pop!_OS with 32 GB RAM + Core Ultra 9. Everything runs locally, zero cloud calls.


Strategy: Two Paths for This Hardware

Path 1: CPU-local via Ollama (start here)

@sandeepkv93
sandeepkv93 / Bazel-Gazelle-Go-Guide.md
Created January 2, 2026 18:30
Complete Guide to Bazel and Gazelle for Go Projects

Complete Guide to Bazel and Gazelle for Go Projects

A comprehensive guide to building Go projects with Bazel and Gazelle, covering modern Bzlmod configuration, BUILD file generation, and practical examples.


Table of Contents

  1. Introduction
  2. Prerequisites and Installation
@sandeepkv93
sandeepkv93 / NordVPN Command Line (CLI) – Complete Reference Guide.md
Created December 30, 2025 19:03
NordVPN Command Line (CLI) – Complete Reference Guide

NordVPN Command Line (CLI) – Complete Reference Guide

Table of Contents

  1. Overview
  2. Installation
  3. Login & Account Management
  4. Basic Connection Commands
  5. Countries, Cities & Groups (Server Discovery)
  6. Server Groups (P2P, Double VPN, etc.)
@sandeepkv93
sandeepkv93 / python3-leetcode-wiki.md
Created October 27, 2025 02:03
Python3 LeetCode Complete Wiki
@sandeepkv93
sandeepkv93 / graphite-cli-guide.md
Created July 14, 2025 14:06
Graphite CLI for Stacked Pull Requests - Complete Guide
@sandeepkv93
sandeepkv93 / cleanup_sensitive_files.md
Created July 12, 2025 01:26
Remove File from All Git Commits

Complete Guide: Remove File from All Git Commits

This guide shows how to permanently delete a file from all commits in a Git repository, including its entire history.

Prerequisites

  • Git installed
  • Python 3.x installed (for git-filter-repo)
  • Administrator/owner access to the repository

✨ Move Top Commit to Stash and Rebase on Latest main

This guide shows how to take the top commit from your current branch, temporarily stash it, update your branch to match the latest main, and then re-apply the stashed changes.


🔧 Use Case

You’ve made one local commit on a feature branch but later realize you want that commit to apply on top of the latest main instead. Rather than rebasing or cherry-picking, you want to:

✅ Use Case: Apply Only Top Commit from a Branch on Top of main

🎯 Goal

From a feature branch, apply only the latest commit on top of the latest main branch — and discard all earlier commits in that branch.


📌 Assumptions

Advanced HashMap Methods in Java - Use Cases & Examples

1. getOrDefault(K key, V defaultValue)

Use Cases:

  • Counting occurrences efficiently.
  • Handling missing keys.
  • Providing default responses.

Example: Word Frequency Counter