Skip to content

Instantly share code, notes, and snippets.

View muratkeremozcan's full-sized avatar

Murat K Ozcan muratkeremozcan

View GitHub Profile
@muratkeremozcan
muratkeremozcan / config.toml
Last active July 9, 2026 16:58
treehouse config
# User-level treehouse config (applies to every repo's pool).
# Repo-level treehouse.toml hooks are ignored for safety, so this is the
# only place hooks can live.
[hooks]
# Runs after a worktree is provisioned/reset, right before it's handed to you.
# `treehouse get` already runs `git fetch origin` before this point, so refs
# are fresh; these hooks only need to act on them. Both resolve the source
# repo via git's worktree->common-dir link, so they work for any repo.
#!/usr/bin/env bash
input=$(cat)
# model-with-reasoning: model display name + reasoning
model_id=$(echo "$input" | jq -r '.model.id // empty')
model_name=$(echo "$input" | jq -r '.model.display_name // empty')
if echo "$model_id" | grep -qi "thinking\|reasoning"; then
model_with_reasoning="${model_name} (reasoning)"
else
model_with_reasoning="${model_name}"
{"schemaVersion":1,"label":"branches","message":"61.4%","color":"yellow"}
@muratkeremozcan
muratkeremozcan / claude-code-review.yml
Last active September 17, 2025 21:45
Claude Code - CI code review
# Sample Claude Code Review Workflow
#
# This is a template workflow that demonstrates how to set up automated code reviews
# using Claude via GitHub Actions. Customize the prompt and focus areas for your project.
#
# To use this workflow:
# 1. Use Claude Code command in your terminal: /install-github-app , this holds your hand throughout the setup
# 2. Copy this file over to your repository's .github/workflows/claude-code-review.yml , which gets auto-generated
# 3. Add ANTHROPIC_API_KEY to your repository secrets
# 4. Customize the prompt section for your project's specific needs
@muratkeremozcan
muratkeremozcan / global_rules.md
Created July 10, 2025 13:41
windsurf global rules

Windsurf Global Rules

Meta Rule: When applying rules, explicitly state which rules are being followed in the output. You may abbreviate rule descriptions to key phrases.

Purpose

This is a centralized ruleset for AI assistance across all projects. These rules define:

  • Coding standards and best practices
  • Project structure conventions
@muratkeremozcan
muratkeremozcan / vite.config.ts
Last active August 30, 2024 15:03
No node hassle vite config for cypress component tests in large repos
import react from '@vitejs/plugin-react' // the -swc version causes problems with cyct, use at your peril
import { polyfillNode } from 'esbuild-plugin-polyfill-node'
import path from 'path'
import type { PluginOption } from 'vite'
import { defineConfig } from 'vite'
import commonjsExternals from 'vite-plugin-commonjs-externals'
import { viteCommonjs } from '@originjs/vite-plugin-commonjs'
import webfontDownload from 'vite-plugin-webfont-dl'
export default defineConfig({