Skip to content

Instantly share code, notes, and snippets.

View Kiryous's full-sized avatar

Kirill Chernakov Kiryous

View GitHub Profile
@Kiryous
Kiryous / elastic-litellm-proxy-setup.md
Created July 16, 2026 11:24
OpenAI Codex + Claude Code with Elastic's LiteLLM Gateway (strip-proxy for Azure param issues)

Using OpenAI Codex + Claude Code with Elastic's LiteLLM Gateway

Elastic's LiteLLM gateway routes some models (e.g. GPT-5.6 Sol) through Azure, which rejects parameters like tool_choice and client_metadata. This setup runs a tiny local Node.js proxy that strips those params before forwarding.

Prerequisites

  • Node.js (any recent version)
  • LITELLM_API_KEY env var set to your Elastic LiteLLM key
@Kiryous
Kiryous / itunesicon.rb
Last active January 13, 2020 13:37 — forked from ttscoff/itunesicon.rb
Retrieve a 512 x 512px icon for an iOS app
#!/usr/bin/ruby
# encoding: utf-8
#
# Updated 2017-10-25:
# - Defaults to large size (512)
# - If ImageMagick is installed:
# - rounds the corners (copped from @bradjasper, https://github.com/bradjasper/Download-iTunes-Icon/blob/master/itunesicon.rb)
# - replace original with rounded version, converting to png if necessary
#
# Retrieve an iOS app icon at the highest available resolution
wget -qO- https://raw.githubusercontent.com/Jigsaw-Code/outline-server/master/src/server_manager/install_scripts/install_server.sh | bash
class Task:
def __init__(self, title, depencies):
self.title = title
self.__depencies = depencies
def execute(self):
plan = []
if self.__depencies:
plan += self.__depencies
for dep in self.__depencies:
@Kiryous
Kiryous / jquery.scrolldepth-settings.js
Created April 26, 2016 12:28
jquery.scrolldepth-settings.js
function send2carrot(str) {
// Отправляет данные в CarrotQuest
var eventName = str.eventAction + " " + str.eventLabel;
if (pages.length > 1) eventName = currentPage + " / " + eventName;
carrotquest.track(eventName, {
action: str.eventAction,
trigger: str.eventLabel,