Skip to content

Instantly share code, notes, and snippets.

@joshmcarthur
joshmcarthur / mcp.gs
Created September 9, 2025 03:48 — forked from jpoehnelt/mcp.gs
Apps Script MCP server
/**
* A constant array defining the tools that this server makes available.
* Each tool is an object with a name, description, and an input schema.
*/
const AVAILABLE_TOOLS = [
{
name: "read_recent_email",
description:
"Reads the subject line of the most recent email thread in your inbox.",
inputSchema: {
# Like rspec --format doc, (which minitest doesn't have)
#
# usage: minidoc test/integration/robs_cool_potatoes_test.rb
minidoc() {
rscript='
red = "\e[0;31m"
purple = "\e[0;35m"
green = "\e[0;32m"
blue = "\e[0;34m"
none = "\e[0m"
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
pp (YourClass.methods - Object.methods).sort
@joshmcarthur
joshmcarthur / assert.rb
Last active December 26, 2015 09:39 — forked from anonymous/assert.rb
module Assert
class AssertFailedException < Exception
end
def assert!(object, method, expected_value)
result = object.send(method)
if result != expected_value
raise new Assert::AssertFailedException("#{object} expected #{method} to be #{expected_value} but was #{result}"
end
end
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Alexander_Sean_McArthur_300229975
@joshmcarthur
joshmcarthur / ubuntu-rvm.sh
Created July 7, 2011 03:23 — forked from mystix/passenger-nginx-setup.sh
Ubuntu 11.04 (Natty) -- RVM + PostgreSQL + Passenger setup script
# run this script on a fresh Ubuntu server installation as root
# copy public ssh key to server's authorized_keys keychain for simple ssh logins
mkdir -p ~/.ssh
echo -e '<your ssh public key here>' > ~/.ssh/authorized_keys
# setup .gemrc
echo -e '---
:verbose: true