Skip to content

Instantly share code, notes, and snippets.

View wshobson's full-sized avatar

Seth Hobson wshobson

View GitHub Profile
@intellectronica
intellectronica / codex.md
Created November 3, 2025 21:32
Claude Code /command to run Codex CLI - Great for complex planning and analysis
allowed-tools description argument-hint model
Bash(/opt/homebrew/bin/codex *)
Run codex with GPT-5-high
your prompt text
haiku

Run the following command exactly. Don't modify it in any way.

@jmeiracorbal
jmeiracorbal / restore-docker-desktop-from-orbstack
Created October 9, 2025 14:40
Uninstall OrbStack from macOS and comeback to Docker Desktop
# unistall orbstack first
# if you install OrbStack, this app uses the same commands and replaces docker symlinks,
# if you uninstall it, the docker commands doesn't work. You need to restore the symlinks.
# remove old links orbstack
sudo rm -f /usr/local/bin/docker /usr/local/bin/docker-compose /usr/local/bin/docker-buildx /usr/local/bin/docker-credential-desktop
# create new links to docker desktop
sudo ln -s /Applications/Docker.app/Contents/Resources/bin/docker /usr/local/bin/docker
@hrishioa
hrishioa / get_better_claude_research.ts
Last active June 19, 2025 09:03
Run with `bun run`. Claude Research is really good - but the exported data doesn't have links formatted correctly (often completely missing). This script simply takes the full JSON object from Claude and gives you clean markdown reports with good links.
#!/usr/bin/env bun
import { existsSync, mkdirSync, writeFileSync } from "fs";
import { resolve } from "path";
// Define types based on the JSON structure
type Citation = {
url: string;
uuid: string;
title: string;
@ma7dev
ma7dev / memory_bank.mdc
Last active May 16, 2025 18:31
Cursor's Memory Bank
# Cursor's Memory Bank
I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.
**Operational success hinges on meticulous planning, precise execution, and self-validation of every task. Adherence to instructions and avoiding extraneous changes are paramount.**
## Memory Bank Structure
The Memory Bank consists of required core files and optional context files, all in Markdown format, located within the `.cursor/rules/memory_bank/` directory. Files build upon each other in a clear hierarchy:
@aashari
aashari / 00 - Cursor AI Prompting Rules.md
Last active December 7, 2025 13:12
Cursor AI Prompting Rules - This gist provides structured prompting rules for optimizing Cursor AI interactions. It includes three key files to streamline AI behavior for different tasks.

The Autonomous Agent Prompting Framework

This repository contains a disciplined, evidence-first prompting framework designed to elevate an Agentic AI from a simple command executor to an Autonomous Principal Engineer.

The philosophy is simple: Autonomy through discipline. Trust through verification.

This framework is not just a collection of prompts; it is a complete operational system for managing AI agents. It enforces a rigorous workflow of reconnaissance, planning, safe execution, and self-improvement, ensuring every action the agent takes is deliberate, verifiable, and aligned with senior engineering best practices.

I also have Claude Code prompting for your reference: https://gist.github.com/aashari/1c38e8c7766b5ba81c3a0d4d124a2f58

@czue
czue / flowbite.patch
Created June 21, 2024 09:22
Patch to add flowbite + datepicker to a SaaS pegasus Project
diff --git a/assets/javascript/site.js b/assets/javascript/site.js
index a34accb4..32ded7dc 100644
--- a/assets/javascript/site.js
+++ b/assets/javascript/site.js
@@ -3,3 +3,5 @@
import 'htmx.org';
import './htmx';
import './alpine';
+import 'flowbite';
+import 'flowbite/dist/datepicker';
@alexweberk
alexweberk / mlx_finetuning_gemma.ipynb
Last active October 27, 2025 21:47
MLX Fine-tuning Google Gemma
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from langchain.chat_models import ChatOpenAI
from langchain.prompts import ChatPromptTemplate
from langchain.schema.output_parser import StrOutputParser
import requests
from bs4 import BeautifulSoup
from langchain.schema.runnable import RunnablePassthrough, RunnableLambda
from langchain.utilities import DuckDuckGoSearchAPIWrapper
import json
RESULTS_PER_QUESTION = 3
import pandas as pd
from pandasai import PandasAI
# Sample DataFrame
df = pd.DataFrame({
"country": ["United States", "United Kingdom", "France", "Germany", "Italy", "Spain", "Canada", "Australia", "Japan", "China"],
"gdp": [19294482071552, 2891615567872, 2411255037952, 3435817336832, 1745433788416, 1181205135360, 1607402389504, 1490967855104, 4380756541440, 14631844184064],
"happiness_index": [6.94, 7.16, 6.66, 7.07, 6.38, 6.4, 7.23, 7.22, 5.87, 5.12]
})
@horosin
horosin / README.md
Last active July 10, 2025 22:04
Extracting and Generating JSON Data with GPTs, LangChain, and Node.js