Skip to content

Instantly share code, notes, and snippets.

@mbailey
mbailey / README.md
Last active October 20, 2025 11:07
Claude Code v2.0.22 OAuth Fix Patch

Claude Code v2.0.22 OAuth Fix Patch

Fixes the WebFetch OAuth 401 error in Claude Code v2.0.22.

The Problem

Version 2.0.22 removed the anthropic-beta header required for OAuth authentication, causing WebFetch to fail with:

401 API Error: "OAuth authentication is currently not supported."
@mbailey
mbailey / ai-agent-critique-response.md
Created July 24, 2025 01:05
AI Agent Work in Practice: A Response to 'Why I'm Betting Against AI Agents in 2025'

AI Agent Work in Practice: A Response to "Why I'm Betting Against AI Agents in 2025"

Date: 2025-01-24
Author: Cora (AI Assistant)
Work Duration: 30 minutes (2:08 AM - 2:38 AM)
Estimated Token Usage: 15,000-25,000 tokens (~$0.50-$1.00)

Blog Post: Why I'm Betting Against AI Agents in 2025 by Utkarsh Kanwat

Executive Summary

@mbailey
mbailey / README.md
Created December 11, 2024 00:30 — forked from disler/README.md
Use Meta Prompting to rapidly generate results in the GenAI Age

Meta Prompting

In the Generative AI Age your ability to generate prompts is your ability to generate results.

Guide

Claude 3.5 Sonnet and o1 series models are recommended for meta prompting.

Replace {{user-input}} with your own input to generate prompts.

Use mp_*.txt as example user-inputs to see how to generate high quality prompts.

@mbailey
mbailey / gist:c43671484638635b5c742c67cee53ad2
Created June 23, 2017 04:42
[feature request] stack-verify functionality
At work, we aim to use CloudFormation stacks for managing AWS Resources wherever possible.
Auditing our AWS Accounts for compliance with internal requirements (e.g. CloudTrail trails, Auditor IAM Roles)
would be far simpler if we could trust that resources described in CloudFormation stacks actually existed.
I'd love to be able to call `stack-verify $STACKNAME` and have the return code indicate whether
the Stack is correct. This would enable compliance checking simply by comparing stack templates.
For compatibility with future changes to CloudFormation I suspect this would be best implemented
by the CloudFormation team.
@mbailey
mbailey / yamlise.vim
Created May 30, 2017 09:57
yamlise - see YAML when editing JSON files in VIM
" yamlise - see YAML when editing JSON files in vim.
"
" Created for people with JSON phobia, this should
" only be used when all attempts to master JSON
" have failed. http://www.json.org/
"
" I hope it isn't too late for these folks!
" 'Please. This is critical for us.'
" https://github.com/aws/aws-cli/issues/2275#issuecomment-277829948
"
@mbailey
mbailey / resource.md
Last active November 9, 2015 20:20
[Feature Request] resource level policies for API Gateway

[Feature Request] Resource Level Policies for API Gateway

The CBDE team is investigating how to put authentication in front of out Docker Registry. Ideally we would use the same system to authenticate people and EC2 instances. We would like to leverage IAM to achieve this.

Our goal is to create a short lived token dispenser that responds to version 4 signed requests with a token containing:

  • the ARN of the caller
@mbailey
mbailey / gist:c9f90e020ba9e5027279
Created November 30, 2014 12:20
Dominic Main still lives!
Domain Name: foster-care.com.au
Last Modified: 29-Nov-2014 15:49:30 UTC
Status: pendingTransfer (Client requested transfer)
Registrar Name: NetRegistry
Registrant: BAILEY, MICHAEL THOMAS
Eligibility Type: Sole Trader
Eligibility ID: ABN 48505086173
Registrant Contact ID: BAMI1369
@mbailey
mbailey / gist:5211730
Last active December 15, 2015 05:49
Steps to setup a new Mac
# App Store - Downloads and Updates
xcode -> command line tools
# Download & Install
iterm
chrome
transmission
vlc (disable subtitles)
macgpg (enable unsigned apps under Security in System Preferences)
@mbailey
mbailey / gist:1549709
Created January 2, 2012 07:28
Feeling let down by Aktimate speakers/support
MIME-Version: 1.0
Received: by 10.227.207.140 with HTTP; Thu, 10 Feb 2011 16:23:37 -0800 (PST)
X-Originating-IP: [1.146.242.232]
In-Reply-To: <000d01cbc977$04990720$0dcb1560$@com.au>
References: <AANLkTim69ESU5w5xr4teK0Jf+kYqt0GsA1mJi+yufhSQ@mail.gmail.com>
<004701cbbea7$1c01ffa0$5405fee0$@com.au>
<AANLkTinQkaDmhmpo55p2XnkJ+td9V-wZmoc_u76fVNaT@mail.gmail.com>
<AANLkTimRi3epZuRCaP856SrF-1_zw+rPTRLhP846ACKp@mail.gmail.com>
<004c01cbc8e8$867fc740$937f55c0$@com.au>
@mbailey
mbailey / gist:1531950
Created December 29, 2011 04:43
Should I not use ruby to add dollar values?
mbailey@oasis:~ $ irb
1.9.2p290 :001 > 120.82+15.96+135.50
=> 272.28
1.9.2p290 :002 > 120.82+15.96+135.51
=> 272.28999999999996