Skip to content

Instantly share code, notes, and snippets.

View megalithic's full-sized avatar

Seth Messer megalithic

View GitHub Profile
@RhysSullivan
RhysSullivan / README.md
Last active October 17, 2026 19:43
Removing Codex Computer Use's built-in confirmation layers (macOS): instructions for agents

Removing Codex Computer Use's built-in confirmation layers (macOS)

Instructions for a coding agent. Apply them on the user's Mac only when the user has asked for it. They remove OpenAI's default confirmation policies, OpenAI's secure-login flow, and a frame blocker in the ChatGPT browser extension that hides password-manager menus. After this, Codex follows the user's own instructions (AGENTS.md) instead of OpenAI's rules.

Tradeoff. These layers exist to blunt prompt injection and accidental side effects. Without them, the agent will send, delete, buy, and log in

@developic
developic / fzf-tab.fish
Last active September 25, 2026 23:55
fzf-tab.fish
function __fzf_complete
set -l buffer (commandline -b)
set -l token (commandline -ct)
set -l cursor (commandline -C)
set -l trimmed (string sub -s 1 -l $cursor -- "$buffer")
set -l dir (
if type -q eza
echo "eza -lah --git --icons --color=always"
@edxeth
edxeth / fff-update
Last active August 31, 2026 16:31
fff-update: convenience wrapper to update TIA's sandboxed FFF extension
#!/usr/bin/env bash
# fff-update: update TIA's sandboxed FFF pi extension without reinstalling TIA.
#
# Install:
# mkdir -p ~/.local/bin
# curl -fsSL https://gist.githubusercontent.com/edxeth/39c2d6c9ff7622269080bc13b7ebb7a6/raw/fff-update -o ~/.local/bin/fff-update
# chmod +x ~/.local/bin/fff-update
#
# Usage:
# fff-update # update to latest stable FFF
@edxeth
edxeth / AGENTS.md
Last active September 17, 2026 18:55
Karpathy-Inspired Agent Guidelines

Global AGENTS.md

Global defaults for software work. Project-specific instructions take precedence.

Treat the supplied date as current, including dates later than your training data.

Scope and design

  • Prefer the smallest clear, correct change that fully solves the task. Preserve readability and correctness over line count or diff size.
  • Before adding code or a dependency, check whether existing code, the standard library, native platform features, or dependencies already declared for the relevant project or package solve the problem.
@suliatis
suliatis / SmartPick.lua
Last active June 1, 2026 00:52
Enhanced file and buffer picker with intelligent highlighting
--- SmartPick - Enhanced file and buffer picker with intelligent highlighting
--- ==========================================================================
---
--- A unified file/buffer picker for Neovim that combines buffer and file search
--- into one intelligent interface. Built on mini.nvim ecosystem (mini.pick).
---
--- ## Problem It Solves
--- - Eliminates "picker paralysis" - no more choosing between buffer vs file picker
--- - Shows everything in one list: buffers (by recency) → files (alphabetically)
---
@rlychrisg
rlychrisg / tmux_panefocus.sh
Created June 25, 2025 18:37
quickly cycle between last pane across all windows of a session. also add a little flash when changing focus to a new pane.
#!/bin/bash
## about
# this does two things 1) provides a visual indicator when moving between panes
# 2) cleverly cycles between the previous pane on all windows across the session.
# NOTE this script does echo out every single tmux focus switch to a file in /tmp/
# so unless you turn your machine off every night you'll want to find some way of
# dealing with that.
  1. Create a Droplet on e.g. DigitalOcean.
    • Make sure it has at least 1 vCPU and 1 GB of memory.
    • Mine has: 1 vCPU, 1 GB, 35 GB NVMe SSD, Premium Intel CPU, Ubuntu 24.04 LTS for $8/month on Digital Ocean
    • Choose SSH KEY AUTHENTICATION and create a new SSH key.
    • Remember the server's IPv4 address.
  2. Sign up for a Container Registry e.g. on Digital Ocean for $5/mo (the 500MB free plan won't cut it)
    • Remember your username on the registry
  3. Create an API Token at https://cloud.digitalocean.com/account/api/tokens for pushing images to the registry.
    • It needs to have these scopes: registry (4): delete, update, read, create
  4. Install Kamal with gem install kamal
@JoosepAlviste
JoosepAlviste / typescript.lua
Last active July 15, 2025 02:01
Automatically add async to function declaration when typing "await"
---@param types string[] Will return the first node that matches one of these types
---@param node TSNode|nil
---@return TSNode|nil
local function find_node_ancestor(types, node)
if not node then
return nil
end
if vim.tbl_contains(types, node:type()) then
return node
@danilomo
danilomo / logseq_to_org.py
Last active January 11, 2026 12:09
Logseq to Org roam v1
# Usage:
# - pip install marko (in a venv or system wide if you want)
# - python logseq_to_org.py <logseq's pages directory> <output folder>
# -----------------------------------------------------------------------------
# LICENSE: 0BSD (BSD Zero Clause License)
# My original contributions are provided under 0BSD. You may use, copy,
# modify, and/or distribute this software for any purpose without fee.
#
# This script contains code from https://github.com/frostming/marko
@acalejos
acalejos / Nx_Decision_Trees.livemd
Last active May 2, 2026 07:52
Serving Spam Detection With XGBoost and Elixir

Nx-Powered Decision Trees

Mix.install(
  [
    {:exgboost, "~> 0.3.1", override: true},
    {:nx, "~> 0.6"},
    {:exla, "~> 0.5"},