Skip to content

Instantly share code, notes, and snippets.

View rambalachandran's full-sized avatar

Ram Balachandran rambalachandran

  • Naavil-AI
  • Down Under
View GitHub Profile
@rambalachandran
rambalachandran / git_copy_changes.md
Created April 14, 2026 01:14
Git Copy SubFolder Changes Across Branches

Task: copy only the changes for specific subfolders from a source branch into a destination branch.

Example branches:

  • source branch: feature-source-branch
  • destination branch: feature-destination-branch

There are two valid approaches depending on whether you want to preserve commit history or only bring over the final state of the folder.

1) Preserve commit history (more precise, more work)

  1. Install the checkpoint.md into .claude/commands/checkpoint.md
  2. In your project's CLAUDE.md file, add
Read `docs/agents/checkpoint/*.md` for context. Every document here must have Summary section that provides high level summary."
  1. Whenever you've finished doing a coherent "thing", or otherwise want to document all the stuff that's in your current session, type /checkpoint. It'll generate a file named e.g. docs/agents/checkpoint/2026-03-30--001.md. It'll ask you if you like the name, and you can say "yes" or Optionally, type "/rename 2026-03-23--001.md into claude, followed by "/exit" and then "claude" to re-open a fresh session. You can resume the previous session with claude 2026-03-23--001.
@rambalachandran
rambalachandran / Dockerfile
Created October 29, 2025 05:22
AWS Linux Docker With uv Python
FROM public.ecr.aws/amazonlinux/amazonlinux:2023-minimal
# Install Python and required dependencies including build tools
RUN dnf update -y && \
dnf install -y python3 python3-devel shadow-utils gcc gcc-c++ curl-minimal tar && \
dnf clean all
# App user (non-root) and application directory
RUN groupadd -g 1000 app && useradd -u 1000 -g app -m -s /sbin/nologin app && \
mkdir -p /app && chown app:app /app
@rambalachandran
rambalachandran / uBlock Custom Filters
Last active March 24, 2025 10:32
uBlock Customized Filters
!Youtube Filters to filter homepage, recommendations and comments
! based on reddit post: https://www.reddit.com/r/uBlockOrigin/comments/sif7x3/how_to_block_several_youtube_things/
www.youtube.com###contentContainer
www.youtube.com##.ytd-two-column-browse-results-renderer.style-scope > .ytd-rich-grid-renderer.style-scope
www.youtube.com###below
www.youtube.com###related
www.youtube.com##ytd-comments
www.youtube.com##ytd-live-chat-frame
www.youtube.com##yt-live-chat-app
www.youtube.com##ytd-thumbnail > a#thumbnail > div#mouseover-overlay