Skip to content

Instantly share code, notes, and snippets.

View shekohex's full-sized avatar

shekohex

View GitHub Profile
@shekohex
shekohex / keybindings.json
Created December 3, 2025 11:48
Windsurf settings and keybindings with Vim leader chords and Zed-like mappings
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+w",
"command": "workbench.action.closeActiveEditor"
},
{
"key": "ctrl+w",
"command": "workbench.action.closePanel",
"when": "panelFocus"
@shekohex
shekohex / LITELLM_ANTHROPIC_INTEGRATION.md
Created November 28, 2025 19:02
LiteLLM Anthropic Integration - Extended Thinking Fix Documentation

LiteLLM Anthropic Integration - Extended Thinking Fix

Overview

This document explains the dual-provider configuration for LiteLLM when using Anthropic Claude models with extended thinking enabled.

Problem Statement

When using Anthropic Claude models (Sonnet 4.5, Opus 4.5) with extended thinking enabled through LiteLLM proxy, multi-turn conversations with tool use fail with cryptographic signature validation errors.

@shekohex
shekohex / final_pricing_calculator.py
Created October 13, 2025 20:08
Docker Platform Pricing Calculator - Python script for calculating costs, profit margins, and scenarios with Contabo infrastructure
#!/usr/bin/env python3
"""
Docker Platform Pricing Calculator - Updated Version
Updated pricing: PRO $20.00, PRO+ $50.00 (MAX tier removed)
FREE tier reduced to 1 vCPU, 1GB RAM, 5GB storage
"""
import math
# Contabo 2025 Pricing (€ to USD conversion: 1.07)
@shekohex
shekohex / updated_final_pricing_table.md
Created October 13, 2025 20:06
Docker Platform Pricing Table - 3-tier structure (FREE, PRO , PRO+ ) with Contabo infrastructure costs and profit margins
Plan Price Resources Storage Bandwidth Features Our Cost Profit Margin
FREE $0/month 1 vCPU, 1GB RAM (shared) 5GB 5GB Basic IDE, Community support $3.21 -
PRO $20.00/month 2 vCPU, 4GB RAM (dedicated) 100GB 100GB Private repos, Email support, Custom Docker $9.46 52.7%
PRO+ $50.00/month 4 vCPU, 8GB RAM (dedicated) 200GB 200GB Priority support, Team collaboration $17.92 64.2%

Infrastructure: Contabo Cloud VPS 40 (12 vCPU, 48GB RAM, 250GB included storage) at $26.75/month + Contabo Object Storage at $0.011/GB

Storage Strategy: Use Contabo's included 250GB storage + Contabo object storage for additional capacity

@shekohex
shekohex / running-devcontainers-cloud.md
Created April 18, 2025 19:05
Running Devcontainers in the Cloud

Running DevContainers in the Cloud

A research document detailing approaches to run Development Containers remotely on AWS and GCP, plus Kubernetes/EKS-based ephemeral workspaces.


Table of Contents

  1. Introduction
  2. AWS EC2-Based DevContainer Workspaces
@shekohex
shekohex / fix-paths.py
Created April 11, 2025 18:16
Lionzhd Series fix paths
#!/usr/bin/env python3
import json
import os
import sys
import argparse
import re
from typing import Dict, List, Optional, Any
def sanitize_filename(filename: str) -> str:
@shekohex
shekohex / .ideavimrc
Created March 5, 2025 14:14
my IdeaVim Config
" .ideavimrc is a configuration file for IdeaVim plugin. It uses
" the same commands as the original .vimrc configuration.
" You can find a list of commands here: https://jb.gg/h38q75
" Find more examples here: https://jb.gg/share-ideavimrc
" vim settings
set scrolloff=5
set history=1000
@shekohex
shekohex / hashx_module.ll
Last active August 20, 2024 14:20
A Simple HashX program in LLVM IR
; ModuleID = 'hashx_module'
source_filename = "hashx_module"
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite)
define void @compute(ptr %0) local_unnamed_addr #0 {
entry:
%const3463 = bitcast i64 -489410267 to i64
%const3447 = bitcast i64 -1543264299 to i64
%const3440 = bitcast i64 -2121149370 to i64
@shekohex
shekohex / substrateToEvm.ts
Created January 2, 2024 12:09
Convert Substrate Address to EVM
import { decodeAddress } from "https://esm.sh/@polkadot/util-crypto";
import { u8aToHex } from "https://esm.sh/@polkadot/util";
const input = Deno.args[0];
if (!input) {
console.error("usage: deno run substrateToEvm.ts <SUBSTRATE_ADDRESS_HERE>");
Deno.exit(1);
}
const accountId = decodeAddress(input);
const res = accountId.subarray(0, 20);
@shekohex
shekohex / claimsNative.rs
Last active January 5, 2024 12:11
Testing Pallet claims Native
import "npm:@webb-tools/tangle-substrate-types@^0.5.1";
import { ApiPromise, WsProvider } from "npm:@polkadot/[email protected]";
import { Keyring } from "npm:@polkadot/[email protected]";
import {
hexToU8a,
stringToU8a,
u8aToHex,
u8aToString,
} from "npm:@polkadot/[email protected]";
import { decodeAddress, keccakAsU8a } from "npm:@polkadot/[email protected]";