Skip to content

Instantly share code, notes, and snippets.

View ben-alkov's full-sized avatar

Ben Alkov ben-alkov

View GitHub Profile
@ben-alkov
ben-alkov / gist:3f9ff6b3b5d30352b6db7c3dcbcdf609
Created March 10, 2024 17:30
Fix for llama.cpp can't memlock enough RAM
Append to '/etc/security/limits.conf'
`* - memlock 23600000`
@ben-alkov
ben-alkov / requirements.txt
Created March 28, 2024 16:20
Fuly hashed requirements.txt for [StableCascade](https://github.com/Stability-AI/StableCascade)
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements.txt requirements.in
#
accelerate==0.27.2 \
--hash=sha256:a818dd27b9ba24e9eb5030d1b285cf4cdd1b41bbfa675fb4eb2477ddfc097074 \
--hash=sha256:cc715fe9a8bc7a286259bfb6d65fb78363badd3371e7cbda4e4a4ef34a0010aa
# via -r requirements.in
@ben-alkov
ben-alkov / crossterm_metadata.json
Created March 28, 2025 20:32
Output of `cargo metadata --format-version 1` for `crossterm`
This file has been truncated, but you can view the full file.
{
"packages": [
{
"name": "addr2line",
"version": "0.24.2",
"id": "registry+https://github.com/rust-lang/crates.io-index#addr2line@0.24.2",
"license": "Apache-2.0 OR MIT",
"license_file": null,
"description": "A cross-platform symbolication library written in Rust, using `gimli`",
"source": "registry+https://github.com/rust-lang/crates.io-index",
@ben-alkov
ben-alkov / code_keymap_fix.jsonl
Created August 12, 2025 17:31
Fix "SHIFT+ENTER adds newline to chat" keymapping for VSCode on Fedora 42; YMMV
{
"command": "-acceptAlternativeSelectedSuggestion",
"key": "shift+enter",
"when": "suggestWidgetHasFocusedSuggestion && suggestWidgetVisible && textInputFocus"
},
{
"command": "-editor.action.extensioneditor.findPrevious",
"key": "shift+enter",
"when": "webviewFindWidgetFocused && !editorFocus && activeEditor == 'workbench.editor.extension'"
},
@ben-alkov
ben-alkov / Notes.md
Created September 4, 2025 19:38
My viewer's notes on "Advanced Context Engineering for Agents"

Context Engineering

(my viewer's notes on [Advanced Context Engineering for Agents][])

Optimize the context window for

  • correctness
  • completeness
  • size
  • trajectory
@ben-alkov
ben-alkov / intentional-tersifier.md
Last active September 5, 2025 19:51
A slash command for Claude Code to "tersify" the context. Use it periodically.

Progress Report Generator

Please create a comprehensive progress report in a file called "progress.md" covering our conversation since (specify timeframe: session start/last major milestone/when we began working on X): $ARGUMENT

Structure the report with these sections:

Approach

@ben-alkov
ben-alkov / content_proxy_plan_v3.md
Created September 11, 2025 15:12
Claude Code/Sonnet 4's plan for a feature set to enable Hermeto to use a content proxy

Generic Artifact Proxy Integration Plan for Hermeto

Overview

Design and implement a flexible feature set that allows all Hermeto package managers to retrieve packages from various artifact proxy/repository systems.

This will enable hermetic builds in air-gapped environments using configurable content proxies like Pulp, Nexus, Artifactory, or custom solutions.

@ben-alkov
ben-alkov / MCP Registry Client Implementation Plan.md
Last active September 15, 2025 22:14
User prompting transcript (partial) for mcp-registry-client
  • CC's output based on user prompts:
  # MCP Registry Client Implementation Plan (Final)

  ## Project Structure
  - Modern Python package using uv for dependency management
  - Python 3.12+ with comprehensive type hints
  - Virtual environments for isolated development work
  - Nox-based development workflow via `noxfile.py`
@ben-alkov
ben-alkov / Ferdium new user tips.md
Created September 25, 2025 17:51
Helpful Tips for New Ferdium Users and why you should use it

Helpful Tips for New Ferdium Users and why you should use it

I was looking for a multi-chat application and stumbled on ferdium being mentioned only once. Google, reddit and other websites point to a variety of other options, but I decided to try ferdium and so glad I did. Don't think I was this excited til I played with unraid. It'd be amazing if Ferdium was available on low resource PC's like a chromebook or htpc.

Pros

@ben-alkov
ben-alkov / recover-dropped-stash.md
Created September 25, 2025 19:41
Git: recover a dropped stash (or any commit ever made)

Git: recover a dropped stash (or any commit ever made)

Finding the hash

If you have only just popped it and the terminal is still open, you will still have the hash value printed by git stash pop on screen (thanks, Dolda).

Otherwise, you can find this way in Linux, Unix or Git Bash for Windows