Skip to content

Instantly share code, notes, and snippets.

View karthiks's full-sized avatar
🎯
Focusing

Karthik Sirasanagandla karthiks

🎯
Focusing
View GitHub Profile
@karthiks
karthiks / miniconda_cheatsheet.sh
Created August 13, 2025 06:13
miniconda cheatsheet
# =============================================
# MINICONDA CHEATSHEET (Python Environment & Package Management)
# =============================================
# Lightweight version of Anaconda for Python environments.
# Install: https://docs.conda.io/projects/miniconda/en/latest/
# Docs: https://conda.io/projects/conda/en/latest/commands.html
# ---------------------------------------------------------------------
# 1. INSTALLATION & SETUP
# ---------------------------------------------------------------------
@karthiks
karthiks / uv_cheatsheet.sh
Created August 13, 2025 06:03
uv cheatsheet
# =============================================
# UV CHEATSHEET (Python Package & Env Management)
# =============================================
# Astral's ultra-fast alternative to pip/venv.
# Install: curl -LsSf https://astral.sh/uv/install.sh | sh
# Docs: https://github.com/astral-sh/uv
# ---------------------------------------------------------------------
# 1. VIRTUAL ENVIRONMENTS
# ---------------------------------------------------------------------
@karthiks
karthiks / ollama-commands-reference.sh
Last active July 17, 2025 06:34
Ollama Commands Cheat Sheet
##### Server Management #####
# Start ollama server using commands - start or serve
ollama start
ollama serve
# Check if server is running
ollama ps
ollama ps --verbose # Check system resources
@karthiks
karthiks / PythonProjectSetupChecklist.md
Created December 31, 2024 14:28
Python Project Setup Checklist
  • Define project directory structure in ASCII format in your README.md, like below:
    - ProjectRoot
      - src
      - tests
        - data
        - unit
        - integration
      - docs
  • examples
@karthiks
karthiks / Data Architect Take Home Assignment.md
Last active November 17, 2024 11:46
Data Architect Take Home Assignment with expectations

MS SQL Server Riddle For The Data Architect

The Company's Backdrop

ABC is a startup that has been through various bends and steep curves climbing up to the spot where it is today. The company's leadership is still unsettled, for their vision is to be the #1 brand in their game. The leadership team is hard-working, energetic and deeply passionate about what they do. In their quest to conquer the coveted position of being the #1 player in serving its customers, it is on a lookout for like minded individuals to join its team, who instead of carrying the job attitude of taking orders to implement it, wears the attitude of a smart player who is proactive in problem solving and constantly strives to improve his skill-sets. Are you that one?

This take home exercise is to help us understand you and your skill-sets better while giving you a taste of the chaos you would likely step into, every single day, here at our startup. This place is not for the faint hearted. This place is for the warriors who dreams bi

@karthiks
karthiks / Coding Problem.md
Last active November 2, 2024 14:15
Coding Problem with Explicit Expectations

Game of Life

Conway's Game of Life, also known as the Game of Life is actually a zero-player game, meaning that its evolution is determined by its initial state, needing no input from human players. One interacts with the Game of Life by creating an initial population and observing how it evolves.

Rules

The universe of the Game of Life is an infinite two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, live or dead.

@karthiks
karthiks / PersonAddress.java
Created October 24, 2024 10:00
Person and Address class with equal() and hashCode() generated using Lombok utility library
import lombok.Data;
@Data // Generates getters for all fields, a useful toString method, and hashCode and equals implementations that checkall non-transient fields. Will also generate setters for all non-final fields, as well as a constructor.
// @Data = @Getter + @Setter + @RequiredArgsConstructor + @ToString + @EqualsAndHashCode
public class Person {
private Long id;
private String name;
}
@Data
@karthiks
karthiks / PersonAddress.java
Created October 24, 2024 09:44
Person and Address class with equal() and hashCode() generated using Eclipse IDE but using java 1.7 Objects's static methods.
public class Person {
private Long id;
private String name;
@Override
public int hashCode() {
return Objects.hash(id, name);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
@karthiks
karthiks / PersonAddress.java
Created October 24, 2024 09:39
Person and Address class with equal() and hashCode() generated using Eclipse IDE without using Objects.
public class Person {
private Long id;
private String name;
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((id == null) ? 0 : id.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
@karthiks
karthiks / PowershellCheatsheet.ps
Created August 15, 2023 17:58
Powershell Cheatsheet
# Windows IP Config
ipconfig
Get-NetIPAddress -AddressFamily IPV4 -InterfaceAlias Wi-Fi | Select IPAddress
# When you want to download a list of files in files.txt having header as `sources,`
Import-Csv .\files.txt | Start-BitsTransfer
# Ping equivalent in PS
Test-Connection -ComputerName (hostname) -Count 1