Skip to content

Instantly share code, notes, and snippets.

View GnaneshKunal's full-sized avatar
🦇

Gnanesh GnaneshKunal

🦇
View GitHub Profile
@GnaneshKunal
GnaneshKunal / 0001-feat-llm-pi-ai-add-per-route-serviceTier-pinning-ser.patch
Last active October 15, 2026 12:14
dsh-llm-pi-ai + ui-settings-models: per-route serviceTier pinning — config field + settings-card select (host+client, single commit, applies to master)
From c90ee87ed0baa5bd3d090cd312a12990c40fbcae Mon Sep 17 00:00:00 2001
From: Gnanesh <gnaneshkunal@outlook.com>
Date: Thu, 15 Oct 2026 17:29:34 +0530
Subject: [PATCH] feat(llm-pi-ai): add per-route serviceTier pinning
service_tier in request bodies
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Provider profiles gain an optional serviceTier field, typed as the union
@GnaneshKunal
GnaneshKunal / README.md
Last active October 15, 2026 10:57
ForgeCode-style ': <prompt>' zsh plugin powered by fx (fx.sh) - shell-context-aware AI prompts with :new/:nitro tags and colored output

ai-colon.zsh — ForgeCode-style ': prompt' for zsh, powered by fx

A drop-in replacement for ForgeCode's zsh plugin (its CLI was sunset in Oct 2026). Type : <prompt> anywhere in your shell and a coding agent answers with your recent shell activity (last 8 commands + exit codes) as context — the old ': check this' debugging loop.

Powered by fx (Vercel Labs, Apache-2.0) — ~1.1s answers, model-agnostic. Test-driven: quote-safe raw input, glob-safe prompts, ANSI output.

@GnaneshKunal
GnaneshKunal / go-ts-fmt.el
Created December 25, 2022 06:29
Plug go-mode's gofmt to the new go-ts-mode (built-in go mode which uses tree-sitter) in emacs
;; Copyright of the below functions belong to the author/contributors of https://github.com/dominikh/go-mode.el.
;; Usage: Plug go-mode's gofmt to the new go-ts-mode (built-in go mode which uses tree-sitter) in emacs.
;; go-ts-mode landed on emacs `master` branch on 2022-12-16.
(defcustom gofmt-command "gofmt"
"The 'gofmt' command.
Some users may replace this with 'goimports'
from https://golang.org/x/tools/cmd/goimports."
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
;; Comment/uncomment this line to enable MELPA Stable if desired. See `package-archive-priorities`
;; and `package-pinned-packages`. Most users will not need or want to do this.
;;(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
(package-initialize)
(setq package-check-signature nil)
(eval-and-compile
@GnaneshKunal
GnaneshKunal / noMercy.scala
Last active September 24, 2017 19:11
No Mercy WWE
import org.apache.log4j._
import org.apache.spark._
object noMercy extends App {
Logger.getLogger("org").setLevel(Level.ERROR)
val sc = new SparkContext("local[*]", "No Mercy Prediction")
val noMercyResults = sc.textFile("/home/monster/git/scala-spark/src/main/resources/nomercy.txt")