Skip to content

Instantly share code, notes, and snippets.

View khadorkin's full-sized avatar

Dima Khadorkin khadorkin

  • Mobile Roadie
  • Vilnius, Lithuania
  • 18:52 (UTC +02:00)
View GitHub Profile
@khadorkin
khadorkin / README.md
Created October 21, 2025 21:03 — forked from RuiNelson/README.md
How to Use GLM Coding Plan and Claude Pro/Max Simultaneously with Claude Code on macOS

Who is this script for?

For those who have a Claude (Anthropic) account and a GLM Coding Plan (Z.ai) account and want to use Claude Code for both.

What does this script solve?

On macOS, Claude Code stores access credentials in the Keychain (macOS Keychain is a secure database that the operating system provides to applications for storing secrets). This makes the setup more secure but less programmatically configurable.

How does this script solve this problem?

@khadorkin
khadorkin / new-worktree.sh
Created October 19, 2025 06:35 — forked from nicknisi/new-worktree.sh
Create a new worktree, install dependencies, and run an initial build
#!/usr/bin/env bash
# This script should help facilitate setting up a new worktree, including:
# - creating a new worktree
# - installing dependencies
# - creating a new branch
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
@khadorkin
khadorkin / AGENTS.md
Created October 16, 2025 13:27 — forked from ben-vargas/AGENTS.md
Bare Git Worktrees AGENTS.md

Git Bare Repository Worktree Workflow for Claude Code

🚨 CRITICAL: Understanding My Project Structure

I use a bare Git repository approach with Git worktrees extensively. Every subdirectory in my projects represents a different git branch as a worktree.

When you see a project like /home/code/projects/my-app/:

  • my-app/ = project container (NOT a working tree)
  • my-app/.bare/ = actual Git repository database
  • my-app/.git = pointer file directing Git commands to .bare/
@khadorkin
khadorkin / AGENTS.md
Created October 16, 2025 08:12 — forked from dctmfoo/AGENTS.md
TDD workflow for you, droid and droid exec - Updated for clarity and placeholders for repo specific instructions!

AGENTS.md - Essential Briefing for AI Agents

For human contributors: See README.md for getting started guide.


🤖 THE 3-ENTITY WORKFLOW (CORE CONCEPT)

This project uses a 3-entity collaboration pattern between Human, Droid Assistant, and Droid Exec.

@khadorkin
khadorkin / debug.json
Created August 29, 2025 07:02 — forked from AnjanJ/debug.json
zed settings,tasks and debug.json
[
{
"name": "Ruby: Debug Current File",
"type": "ruby",
"request": "launch",
"program": "${file}",
"cwd": "${workspaceFolder}",
"useBundler": true,
"pathToBundler": "/usr/local/bin/bundle",
"pathToRDebugIDE": "rdebug-ide",
@khadorkin
khadorkin / usage.tsx
Created January 23, 2025 20:41 — forked from Makisuo/usage.tsx
Pglite x Drizzle Live Query
const { data: accounts } = useDrizzleLive((db) =>
db.query.accounts.findMany({
limit: 100,
with: {
institution: true,
},
}),
)
@khadorkin
khadorkin / skeleton.tsx
Created October 24, 2024 12:06 — forked from EvanBacon/skeleton.tsx
Animated skeleton component with Expo SDK 52
"use client";
import React from "react";
import { View, StyleSheet, Animated, Easing, ViewStyle } from "react-native";
const BASE_COLORS = {
dark: { primary: "rgb(17, 17, 17)", secondary: "rgb(51, 51, 51)" },
light: {
primary: "rgb(250, 250, 250)",
secondary: "rgb(205, 205, 205)",
@khadorkin
khadorkin / fish_install.md
Created July 13, 2023 07:02 — forked from gagarine/fish_install.md
Install fish shell on macOS Mojave with brew

Installing Fish shell on MacOS (Intel and M1) using brew

Fish is a smart and user-friendly command line (like bash or zsh). This is how you can instal Fish on MacOS and make your default shell.

Note that you need the https://brew.sh/ package manager installed on your machine.

Install Fish

brew install fish

@khadorkin
khadorkin / ci-yarn-install.md
Created January 24, 2023 12:21 — forked from belgattitude/ci-yarn-install.md
Composite github action to improve CI time with yarn 3+ / node-modules linker.
import React from "react";
import { Dimensions, TextInput, ScrollView } from "react-native";
import Animated, {
useAnimatedKeyboard,
useAnimatedReaction,
runOnJS,
KeyboardState,
useAnimatedProps,
useAnimatedScrollHandler,