Skip to content

Instantly share code, notes, and snippets.

View eSlider's full-sized avatar

Andrey Oblivantsev eSlider

View GitHub Profile
@eSlider
eSlider / infernus.md
Created July 3, 2026 17:19
Cursor custom models: Ollama, llama.cpp, Mermaid diagrams

Кастомные модели в Cursor

Кратко: Cursor умеет подключать любой endpoint в формате OpenAI API (/v1/chat/completions). Локально это обычно Ollama, LM Studio или llama.cpp server — все они поднимают HTTP-сервер, а Cursor думает, что общается с OpenAI.

LLVM — это компиляторная инфраструктура (Clang, оптимизации), к LLM не относится. Скорее всего имелось в виду Ollama (или опечатка «Llama»).


1. Общая схема

@eSlider
eSlider / AMD Ryzen AI 9 HX 370 GPT OSS 20b benchmark.md
Created June 15, 2026 12:14
AMD Ryzen AI 9 HX 370 GPT OSS 20b benchmark

GPT-OSS on AMD Radeon 890M (llama.cpp)

Local inference for OpenAI gpt-oss-20b via llama.cpp and Vulkan.

Why gpt-oss-20b

Model Fits this GPU? Notes
gpt-oss-20b ✅ Yes MXFP4 GGUF ~11.3 GiB; full GPU offload on 890M
gpt-oss-120b ❌ No Needs ~80 GB VRAM (or heavy CPU offload + 64 GB+ RAM)
@eSlider
eSlider / intel-arc-b-vllm.html
Last active June 14, 2026 11:03
Intel Arc @ vllm
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>grok Chat Export</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 800px;
d94M9jK3lXm8MSmDb5w87AxBl7jGouxuw1w9R3T2DZ8=
@eSlider
eSlider / pg-python-api-webhook-trigger.sql
Last active November 15, 2024 20:50
Postgresql python API webhook trigger example
-- Creates a function that is able to request any URL and return the response
create or replace function get_http(url text, data json) returns text
language plpython3u as
$$
import requests
response = requests.get(url, verify=False, json=data)
return response.text
$$;
-- Test-example call a webhook with data and get the response
@eSlider
eSlider / posgresql-python-tricks.sql
Created August 20, 2024 12:55
PostgreSQL python(plpython3u extension) abilities
-- 1. Install
-- apt-get update && apt-get install -f postgresql-plpython3-16 pip
-- 2. Python extension
CREATE EXTENSION plpython3u;
-- 3. Install API python packages
-- pip install http.client urllib3 --break-system-packages
@eSlider
eSlider / duckdb-timescaledb-postgres.Dockerfile
Last active January 19, 2026 14:05
postgresql 16 with timescaledb, duckdb and python as procedure languge enabled
FROM postgres:16
MAINTAINER Andriy Oblivantsev <eslider@gmail.com>
# Set the environment variables
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ "Europe/Madrid"
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
@eSlider
eSlider / Workflow-Example.md
Last active December 9, 2022 14:56
Workflow-Example

Service for Author and Reader Workflows

This AWS Lambda service provides a streamlined workflow for authors and readers to interact with each other. It allows authors to sign up, configure their reader magnet, and integrate their email tool. It also allows readers to access the author's book landing page, confirm their email address, and access the exclusive content.

Author Workflow

  1. Author Sign-up: Authors come to the website to sign-up for the service and to configure/administer their reader magnet. The author account sign-up flow should simply be email and password. Admin has the ability to approve/reject/freeze accounts in order to save capacity for the 100 authors (in case a bunch of random people sign-up).

  2. Author’s Book Landing Page Configuration: After an author is signed up, they have a landing page configuration capability that provides the inputs to their landing page that readers see for each of their books that contain an email magnet. Each book landing page should have the ability

@eSlider
eSlider / oai
Created December 8, 2022 03:42
OpenAI Chat CLI
#!/bin/bash
## Install
# apt-get install -y jq
## Create an key here: https://beta.openai.com/account/api-keys
export OPENAI_API_KEY='sk-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
## AI Model
model=text-davinci-003