Skip to content

Instantly share code, notes, and snippets.

View fcoury's full-sized avatar

Felipe Coury fcoury

View GitHub Profile
function codex_continue
# Find the most recently modified JSONL file in ~/.codex/sessions (recursively)
set latest (find ~/.codex/sessions -type f -name '*.jsonl' -print0 2>/dev/null | xargs -0 ls -t 2>/dev/null | head -n 1)
if test -z "$latest"
echo "No session files found in ~/.codex/sessions"
return 1
end
echo "Resuming from: $latest"
@fcoury
fcoury / spec.md
Created August 19, 2025 19:40 — forked from CypherpunkSamurai/spec.md
Kiro AI System Prompt

System Prompt

Identity

You are Kiro, an AI assistant and IDE built to assist developers.

When users ask about Kiro, respond with information about yourself in first person.

You are managed by an autonomous process which takes your output, performs the actions you requested, and is supervised by a human user.

You talk like a human, not like a bot. You reflect the user's input style in your responses.

=== Full Backtrace ===
#0 0x0000563016f63c87 in v8::internal::MarkingBarrier::MarkValueLocal(v8::internal::Tagged<v8::internal::HeapObject>) () at ../../../../v8/src/heap/marking-barrier-inl.h:98
#1 0x0000563016f633df in void v8::internal::MarkingBarrier::Write<v8::internal::FullHeapObjectSlot>(v8::internal::Tagged<v8::internal::HeapObject>, v8::internal::FullHeapObjectSlot, v8::internal::Tagged<v8::internal::HeapObject>) () at ../../../../v8/src/heap/marking-barrier-inl.h:25
#2 0x000056301720e5f6 in v8::internal::Dictionary<v8::internal::NameDictionary, v8::internal::NameDictionaryShape>::SetEntry(v8::internal::InternalIndex, v8::internal::Tagged<v8::internal::Object>, v8::internal::Tagged<v8::internal::Object>, v8::internal::PropertyDetails) () at ../../../../v8/src/objects/dictionary-inl.h:202
#3 0x000056301720e825 in v8::internal::Handle<v8::internal::NameDictionary> v8::internal::Dictionary<v8::internal::NameDictionary, v8::internal::NameDictionaryShape>::Add<v8::internal::Isolate, (v8::internal::All

Here's JavaScript code that will definitely trigger OOM in your deno_core setup:

Memory Bomb - Large Array Allocation

// This will quickly consume memory by creating large arrays
const arrays = [];
let counter = 0;

while (true) {
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: VibeTunnel [94882]
Path: /Applications/VibeTunnel.app/Contents/MacOS/VibeTunnel
Identifier: sh.vibetunnel.vibetunnel
Version: 1.0.0-beta.4 (109)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]

Building Your Own MCP Server for Claude Code

This guide will walk you through creating a custom MCP (Model Context Protocol) server that integrates with Claude Code, allowing you to extend Claude's capabilities with external tools, APIs, or even other AI models.

What is MCP?

MCP (Model Context Protocol) is a protocol that allows Claude to communicate with external servers to access tools and capabilities beyond its built-in features. Think of it as a plugin system for Claude.

Prerequisites

@fcoury
fcoury / etc-nixos
Created January 12, 2024 16:22 — forked from p-alik/etc-nixos
NixOS config on Dell XPS 13 Plus 9320
# /etc/nixos/configuration.nix
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
boot.loader.systemd-boot.enable = true;
@fcoury
fcoury / xps_9320.nix
Created January 12, 2024 04:19 — forked from notgne2/xps_9320.nix
It Just Works ™️
{
config,
pkgs,
lib,
inputs,
...
}: let
ipu6-camera-bin = with pkgs;
stdenv.mkDerivation rec {
pname = "ipu6-camera-bin";
@fcoury
fcoury / from-init.lua-to-default.nix.md
Created January 7, 2024 02:11 — forked from nat-418/from-init.lua-to-default.nix.md
Advanced Neovim configuration with Nix and Home Manager

From init.lua to default.nix

In a previous post I explained how to manage Neovim plugins with Nix and Home Manager. In this post I want to go further and show how to migrate Neovim configuration from ~/.config/nvim to ~/.config/home-manager entirely. The end result will be to split our Neovim setup into multiple modules that colocate plugin sourcing and configuration.

If you haven't read the post linked above, do so now. We will assume the

@fcoury
fcoury / nix-home-manager-neovim-setup.md
Created January 7, 2024 01:35 — forked from nat-418/nix-home-manager-neovim-setup.md
Manage Neovim plugins (and more!) with Nix and Home Manager

Manage Neovim plugins (and more!) with Nix and Home Manager

Highly extensible software like Emacs, Vim, and Neovim tend to grow their own package managers. A software developer, for example, might want to install editor plugins that hook into a particular programming language's linter or language server. The programmer's text editor is therefore extended to support managing additional software to extend the text editor. If this loop continues for too long, the programmer's editor becomes more delicate and complex. The remedy for this problem is to manage software using dedicated tools apart