Skip to content

Instantly share code, notes, and snippets.

View chazmuzz's full-sized avatar

Jack Murray chazmuzz

  • Shellharbour, New South Wales
View GitHub Profile
@chazmuzz
chazmuzz / oh-my-openagent-effort-patch.md
Last active April 23, 2026 03:05
Fix: oh-my-openagent sends effort=max to GitHub Copilot opus models (issue #3563)

Fix: oh-my-openagent sends effort: "max" to GitHub Copilot (claude-opus-4.6 / 4.7)

Symptom

Sisyphus / Oracle / Prometheus / Metis / Momus runs fail with:

{"error":{"message":"output_config.effort \"max\" is not supported by model claude-opus-4.6; supported values: [low medium high]","code":"invalid_reasoning_effort"}}
@chazmuzz
chazmuzz / script.js
Created August 18, 2023 05:20
FIFA Women's world cup - resell platform ticket purchase bot
// https://resale-aus.fwwc23.tickets.fifa.com/secured/selection/resale/item?performanceId=10228543141438&productId=101397765775&lang=en
// Paste this into browser console and it will keep polling trying to snipe tickets
(function() {
const NUM_TICKETS_REQUIRED = 4;
let counter = 0;
let attemptedPurchase = false;
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
## --------- ##
## --------- ##
@chazmuzz
chazmuzz / laravel-elixir-reactify-browserify.js
Last active August 29, 2015 14:14
Because I was was getting an error when trying to use reactify with laravel-exlixir-browserify [Laravel Elixir] Error: write after end
var gulp = require('gulp');
var source = require('vinyl-source-stream');
var notifications = require('laravel-elixir/ingredients/commands/Notification');
var browserify = require('browserify');
var reactify = require('reactify');
var notify = require("gulp-notify");
elixir.extend('bundle', function(file) {
var scriptsDir = './' + this.assetsDir + 'js';
@chazmuzz
chazmuzz / rand7.js
Created July 4, 2013 11:18
Create rand7() given rand5()
/*
Write a method to generate a random number between 1 and 7, given a method
that generates a random number between 1 and 5 (i.e., implement rand7()
using rand5()).
*/
function rand7() {
var vals = [
[ 1, 2, 3, 4, 5 ],
[ 6, 7, 1, 2, 3 ],
[ 4, 5, 6, 7, 1 ],
@chazmuzz
chazmuzz / insertion_sort.js
Last active December 19, 2015 08:39
Insertion sort
function insertion_sort(array) {
var i, j, tmp;
for (i = 0; i < array.length; i++) {
j = i;
while (j > 0) {
if (array[j] < array[j - 1]) {
tmp = array[j];
array[j] = array[j - 1];
array[j - 1] = tmp;
@chazmuzz
chazmuzz / find_maximum_subsequence.js
Last active December 19, 2015 04:19
O(n) JavaScript implementation of Kadane's_Algorithm
/*
Find the maximum subsequence sum of an array of integers which contains
both positive and negative numbers and return the starting and ending
indices within the array.
For example:
int array[] = {1, -2, -3, 4, 5, 7, -6}
The max subsquence sum is 4+5+7= 16 and start index is at 3 and end index