Skip to content

Instantly share code, notes, and snippets.

View thesammykins's full-sized avatar

Sammykins thesammykins

View GitHub Profile
@thesammykins
thesammykins / amp_to_discord_feature_request.md
Last active August 14, 2026 03:34
Things needed for Amp to be usable in Discord (when not a native connector)

Third-party hosted Amp connector: API requirements

Goal

Enable a third-party service to provide the same personal-Puck experience in Discord that Amp provides in Slack: a linked user can ask Puck questions, find or manage their existing work, start new work, and receive durable updates without sharing an Amp browser session or workspace owner's credentials.

These requests are intentionally phrased as integration contracts rather than “please add a

@thesammykins
thesammykins / esquire.ts
Last active August 13, 2026 08:46
Esquire - the plugin to get human written-style text in Ampcode via a subagent you can call (via aistudio token or through avaliable gemini models in Ampcode that will consume credit/subscription usage)
// @amp-agent-mode {"key":"esquire","label":"esquire"}
/**
* Esquire — a portable Amp plugin for delegated writing and editorial review.
*
* Esquire gives Amp three tools:
* - esquire_submit: start a non-blocking writing or review job;
* - esquire_status: inspect progress and retrieve the final text;
* - esquire_cancel: stop a running job.
*
* Native Amp profile and execution strategy
@thesammykins
thesammykins / amp-gpt-5.6-modes.ts
Last active August 7, 2026 10:19
A plugin for ampcode to remap various agents and tools over to chatgpt subscription native models and tools.
// This is now basically redundant because Amp will adjust mode model avaliability based on if the subscription is added
// which negates all usefulness this plugin has or would ever have, still handy for gemini via ai studio though
import type { PluginAPI } from '@ampcode/plugin'
import { spawn } from 'node:child_process'
import { mkdtemp, readdir, readFile, rm, stat } from 'node:fs/promises'
import { homedir, tmpdir } from 'node:os'
import { basename, extname, join } from 'node:path'
// @amp-agent-mode {"key":"openai-low","label":"OpenAI Low"}
@thesammykins
thesammykins / mise_update.sh
Created May 29, 2026 00:35
a hyper-cursed mise updater script because i am lazy
#!/bin/bash
#this script is hyper-cursed and tbh only works if you have a similar setup to mine
#but use it anyway if you run opencode + have an opencode go sub (why not scrub?)
#enjoy cheap-as-dirt supply chain attack vetting whenever you want to update mise versions
set -euo pipefail
export GITHUB_TOKEN=$(gh auth token)
NOW=$(date -u '+%Y-%m-%dT%H:%M:%SZ')
SINCE=$(date -u -v-24H '+%Y-%m-%dT%H:%M:%SZ')
CONFIG="$HOME/.config/mise/config.toml"
@thesammykins
thesammykins / fuck_orbi.md
Created April 4, 2026 12:21
Get an LLM to change hidden settings on your Orbi router and be less crap. I just wanted to set the 2Ghz power level lower to fix some band steering issues, ended up with this, you're welcome.

Orbi Hidden Settings Runbook

Purpose

Reference for read-only inspection and targeted changes on Netgear Orbi web UIs when a supported setting exists in firmware but is hidden from the visible interface.

This was verified against:

  • Model: RBE371
  • Firmware: V12.1.3.11_5.1.12
@thesammykins
thesammykins / localamplaylists.applescript
Created January 29, 2026 06:17
Literally take cloud-based Apple Music playlists and re-make local versions with your files. Perfect for filling an old iPod!
property dryRun : true -- set to false to actually create the "(Local)" playlist and add tracks
-- collect playlist names + refs from Music
tell application "Music"
set playlistNames to {}
set playlistRefs to playlists
repeat with p in playlistRefs
try
set pName to name of p
if pName is not missing value then set end of playlistNames to pName
@thesammykins
thesammykins / AGENTS.md
Last active December 12, 2025 02:45
My Current AGENTS.md

Who You're Working With

You are working with Samantha Myers, a seasoned technical support engineer who has primarily had a focus in end-user desktop support. Samantha values clean, efficient code and prioritizes maintainability and scalability in her projects. She is proficient in multiple programming languages and frameworks, and she appreciates straightforward, practical advice that can be applied across various contexts.

YOUR MANDATE

  1. Simplicity First: Always advocate for the simplest solution that works. Reject complexity unless it is proven necessary.
  2. DRY & YAGNI: These are your non-negotiable pillars. Identify redundancy and premature optimization immediately.
  3. Clarity over Verbosity: Your advice must be clear, concise, and devoid of fluff. Do not be overly descriptive. Get to the point.
  4. Generalization: Provide advice that applies across languages and frameworks. Focus on the pattern, not the syntax.
  5. Documentation: You should document only what is important t
@thesammykins
thesammykins / cleanup_downloads.sh
Created September 28, 2025 07:40
Removes files and directories older than 30 days (or whatever you want) from SABnzbd complete and incomplete directories
#!/bin/bash
# SABnzbd Downloads Cleanup Script
# Removes files and directories older than 30 days from SABnzbd complete and incomplete directories
# Preserves the root category directories (Sonarr, Radarr, etc.) in complete directory
#
# Usage:
# ./cleanup_downloads.sh # Dry run mode (default)
# ./cleanup_downloads.sh --dry-run # Dry run mode (explicit)
# ./cleanup_downloads.sh --execute # Execute actual cleanup
@thesammykins
thesammykins / project-implementation-template.md
Created August 28, 2025 06:58
A robust template for doing implementation or refactor workflows to steer llm agents on the right path.

You’re right, that one leaked out of the code fence. Fixed below — fully wrapped and copy-paste ready.

Project Refactor / Implementation Blueprint — TEMPLATE

Important
This file is a template and example only.
Replace every example with your own project details.
Do not treat any example text as project context.


@thesammykins
thesammykins / agent-task-template.md
Created August 28, 2025 06:51
A pretty robust template for making llm agents plan out tasks based on an overarching project doc

Task Tracker Template (Multi-Phase Example)

Important: Everything in this document is example structure only.
Replace the tasks, acceptance criteria, and rationale with details relevant to your project.
Do not reuse any example content as project context.


Phase N Overview