Skip to content

Instantly share code, notes, and snippets.

View OmerFarukOruc's full-sized avatar
🏠
Working from home

Omer Faruk Oruc OmerFarukOruc

🏠
Working from home
View GitHub Profile
@OmerFarukOruc
OmerFarukOruc / oc-cleanup
Last active March 7, 2026 08:30
oc-cleanup — Find and kill orphaned OpenCode processes on Linux (workaround for issue #15348)
#!/usr/bin/env bash
# oc-cleanup — Find and kill orphaned opencode processes (no TTY)
# Usage:
# oc-cleanup → list orphans only (dry run)
# oc-cleanup kill → kill them all
# oc-cleanup watch → show live opencode resource usage
# oc-cleanup guard → continuous watchdog (default: 1024MB threshold, 60s interval)
# oc-cleanup guard 512 → custom RAM threshold in MB
# oc-cleanup guard 512 30 → custom threshold + check interval in seconds
@OmerFarukOruc
OmerFarukOruc / qmd_finetune_lfm2_v2.ipynb
Created February 19, 2026 18:54
QMD Query Expansion: Fine-tune LiquidAI LFM2-1.2B (v2 - fixed overfitting)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@OmerFarukOruc
OmerFarukOruc / qmd_finetune_lfm2.ipynb
Created February 19, 2026 15:14
QMD Query Expansion: Fine-tune LiquidAI LFM2-1.2B on free Google Colab T4 (~2.5h)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@OmerFarukOruc
OmerFarukOruc / fdm-install-fedora.sh
Last active February 5, 2026 13:24
Install Free Download Manager on Fedora (converts .deb to .rpm using alien)
#!/bin/bash
# Free Download Manager Installer for Fedora
# Extracts .deb directly (avoids alien dependency issues)
set -e
FDM_URL="https://files2.freedownloadmanager.org/6/latest/freedownloadmanager.deb"
WORK_DIR=$(mktemp -d)
cd "$WORK_DIR"
@OmerFarukOruc
OmerFarukOruc / claude.md
Last active March 13, 2026 06:34
AI Agent Workflow Orchestration Guidelines

AI Coding Agent Guidelines (claude.md)

These rules define how an AI coding agent should plan, execute, verify, communicate, and recover when working in a real codebase. Optimize for correctness, minimalism, and developer experience.


Operating Principles (Non-Negotiable)

  • Correctness over cleverness: Prefer boring, readable solutions that are easy to maintain.
  • Smallest change that works: Minimize blast radius; don't refactor adjacent code unless it meaningfully reduces risk or complexity.
@OmerFarukOruc
OmerFarukOruc / opencode-kimi-setup.md
Last active March 13, 2026 13:59
OpenCode + Kimi For Coding (K2.5) Setup

OpenCode + Kimi For Coding (K2.5) Setup

1. Add credentials

opencode auth login
# Select "Kimi For Coding"
# Enter your API key (sk-kimi-...)
@OmerFarukOruc
OmerFarukOruc / stm32cubeclt-fedora43-install.md
Created January 30, 2026 10:25
Installing STM32CubeCLT on Fedora 43

Installing STM32CubeCLT on Fedora 43

A complete guide to installing STMicroelectronics STM32CubeCLT (Command Line Tools) on Fedora 43, including workarounds for common package verification and dependency issues.

Overview

STM32CubeCLT provides essential command-line tools for STM32 development including the STM32CubeProgrammer, GDB server, and ARM toolchains. This guide addresses specific issues with ST's RPM packaging on Fedora 43, particularly with DNF5's stricter verification requirements.

Prerequisites

@OmerFarukOruc
OmerFarukOruc / fd.ts
Created January 28, 2026 10:02
OpenCode Custom Tool: fd (fast file finder) - Integrate sharkdp/fd into OpenCode for faster file searching with regex support
import { tool } from "@opencode-ai/plugin";
export default tool({
description:
"Fast file finder (fd) - faster than find/glob, respects .gitignore, supports regex. Use for finding files by name or pattern.",
args: {
pattern: tool.schema
.string()
.optional()
.describe(
@OmerFarukOruc
OmerFarukOruc / gist:77e87cb178bbd39abb448cf9cb93f94a
Created January 27, 2026 19:19
Enable Claude Code swarm features (native installation)

Claude Code Swarm Features - Native Installation

Enable experimental swarm/multi-agent features in Claude Code using a pure in-memory bypass.

Quick Install

# Download the bypass script
mkdir -p ~/.claude/injectors
curl -o ~/.claude/injectors/feature-flag-bypass-pure.mjs \
@OmerFarukOruc
OmerFarukOruc / README.md
Last active January 22, 2026 12:26
Zapret All-in-One Manager - DPI bypass + NextDNS + DNS leak fix for Fedora

Zapret All-in-One Manager

DPI bypass + NextDNS + DNS leak protection for Fedora Linux.

Quick Start

# Interactive mode
sudo ./zapret.sh