Skip to content

Instantly share code, notes, and snippets.

View barakplasma's full-sized avatar

Michael Salaverry barakplasma

View GitHub Profile

Context Engineering: The Architecture of AI Agents

"Context engineering is the delicate art and science of filling the context window with just the right information for the next step." [cite_start]— Andrej Karpathy [cite: 79]

Introduction: Beyond Prompt Engineering

--{{0}}--

Welcome to the chapter on Context Engineering. As software engineers, we often start working with LLMs by tweaking prompts—changing a word here, adding "please" there. This is known as Prompt Engineering. However, for industrial-strength applications, this is not enough.

--{{1}}--

@barakplasma
barakplasma / Langfuse-Org-Admin-CronJob-Guide.md
Created January 5, 2026 14:09
Complete Langfuse Organization Admin CronJob Setup - Automatically add jo@example.com as admin to all organizations

Langfuse Organization Admin Cron Job Setup Guide

This guide provides a complete solution for automatically adding jo@example.com as an organization admin to all Langfuse organizations using a Kubernetes CronJob that runs every hour.

📋 Table of Contents

  1. Overview
  2. Prerequisites
  3. Database Schema Discovery
  4. Complete Solution
{
"basics": {
"label": "Senior Software Engineer",
"name": "Michael Salaverry",
"profiles": [
{
"network": "Github",
"url": "https://github.com/barakplasma",
"username": "barakplasma"
},
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "thomas.edison@example.com",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "thomas.edison@example.com",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
# backup at Z5nYiUJM https://rentry.co/7d98g63q
from playwright.sync_api import sync_playwright
import requests
import schedule
from time import sleep
from datetime import datetime, UTC
from loguru import logger
@barakplasma
barakplasma / jffs-scripts-exfat
Created February 23, 2024 06:10
AsusWrt scripts
#!/bin/sh
mkdir -p /mnt/fourtera
DISK=$(fdisk -l | grep 2047 | cut -d " " -f2 | sed "s/:/2/")
logger $DISK
mount.exfat-fuse $DISK /mnt/fourtera
// ==UserScript==
// @name Text-To-Speech Toggle
// @namespace http://tampermonkey.net/
// @version 0.4
// @description text to speech for qireader articles with toggle button
// @author Michael Salaverry
// @match https://www.qireader.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=qireader.com
// @grant none
// ==/UserScript==
@barakplasma
barakplasma / script.js
Last active March 20, 2024 18:30
Display if KSP items in category are available nearby (on context menu right click)
// ==UserScript==
// @name Show in stock on KSP
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://ksp.co.il/web/cat/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=co.il
// @grant GM.xmlHttpRequest
// @connect ksp.co.il
@barakplasma
barakplasma / Dockerfile
Last active December 13, 2022 10:38
How to read docker-compose secrets file as environment variables from unadapted image
FROM busybox
CMD [ "sh", "/run/secrets/my_secret" ]