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 / config.ts
Created May 12, 2026 08:05
Reference Typescript config.ts
/**
* Helper to convert semantic version (e.g., 1.2.3) into a numeric code (10203)
* This ensures Android versionCode is always incrementing correctly.
*/
const getVersionCode = (version: string): number => {
const [major, minor, patch] = version.split('.').map(Number);
return major * 10000 + minor * 100 + patch;
};
const APP_VERSION = "1.2.3";
@karthiks
karthiks / config.json
Created May 12, 2026 08:04
Sample flat file json config in RN project
{
"apiEndpoint": "https://api.production.com",
"theme": "dark",
"version": "1.2.3",
"versionCode": 10203,
"enableAnalytics": true
}
@karthiks
karthiks / app.config.ts
Created May 11, 2026 12:40
Sample app.config.js fore reference if you are on Expo RN project leveraging TypeScript
import pkg from './package.json';
export default {
expo: {
name: "My App",
version: pkg.version, // Automatically pulls from package.json
android: {
package: "com.mydomain.app"
}
}
@karthiks
karthiks / environment.properties
Created May 8, 2026 16:35
Environment Variables Template for Claude Code with various Vendor Platforms
######################################################################################################################################
# For CC running in Docker Container below are various environment configs with various integration points
# To start CC with worktree enabled start it with `--worktree` flag like `claue --worktree`
# To start CC with specific settings.json file like `lmstudio.settings.json `, start it like `claude --settings lmstudio.settings.json`
#######################################################################################################################################
## LM Studio on Windows Desktop
# "host.docker.internal" is Docker Network way of routing to its Windows Host
ANTHROPIC_BASE_URL="http://host.docker.internal:1234/"
ANTHROPIC_AUTH_TOKEN="dummy"
@karthiks
karthiks / eas.json
Last active May 11, 2026 12:29
Sample EAS.json config file that EAS CLI uses to configure project builds in its server
{
"build": {
"development": {
"developmentClient": true,
"distribution": "internal",
"autoIncrement": true,
"android": {
"gradleCommand": ":app:assembleDebug",
"buildType": "apk"
}
@karthiks
karthiks / Dockerfile
Last active April 30, 2026 05:38
Dockerfile to setup dev environment for Claude Code to build Expo / React Native app
# --- Stage 1: The JDK Provider ---
FROM eclipse-temurin:17-jdk-jammy AS jdk-source
# --- Stage 2: Final Development Image ---
FROM node:20-slim
# Build arguments for user configuration
ARG USERNAME=ccagent
ARG WORKDIR=app
@karthiks
karthiks / docker-compose.yml
Created April 28, 2026 14:17
docker-compose to build the image and runt it for setting up dev environment for Claude Code to build Expo / React Native app
services:
tel_hanuma_chalisa:
# When you have default setup with Dockerfile being the name
# build: .
# Being explicit for clarity
build:
context: .
dockerfile: Dockerfile.dev
image: tel_hanuma_chalisa:latest
container_name: thc
# Reference config for ReDroid in docker-compose
# This one is likely resource intensive.
# When I added another service my Docker started restarting because of resource contention with host OS having only 16GB RAM.
services:
redroid:
image: redroid/redroid:16.0.0-latest
container_name: redroid
restart: unless-stopped
privileged: true
@karthiks
karthiks / .wslconfig
Last active April 27, 2026 12:57
Sample WSL Config to balance Docker on Windows resource utilization with host machine
# This .wslconfig can be found in your windows host @ C:\Users\{your-user}\.wslconfig
[wsl2]
localhostForwarding=true
# default memory limit is 50% of available memory (setting higher limit might slow down your host performance)
memory=10GB
# Sets the amount of swap space (virtual memory on disk)
# This acts as a safety net if your containers spike
@karthiks
karthiks / Docker.jdtls
Created April 19, 2026 06:35
Reference Implementation - Minimal one to install JDTLS in Docker container
# Use official Maven image with JDK 21
FROM maven:3.9.6-eclipse-temurin-21
# Install dependencies for JDTLS (Python is required for the wrapper script)
RUN apt-get update && apt-get install -y \
python3 \
wget \
tar \
&& rm -rf /var/lib/apt/lists/*