Skip to content

Instantly share code, notes, and snippets.

@gregoryfoster
gregoryfoster / using-anthropic-api-key-with-exe_dev-shelley.md
Created October 23, 2026 04:31
Using your own Anthropic API key with Shelley on exe.dev

Using your own Anthropic API key with Shelley on exe.dev

By default, Shelley on exe.dev VMs runs on exe.dev's managed LLM gateway. These steps switch the Anthropic provider to your own API key ("BYOK"). After the switch, you confirm it from inside a VM and check that it applies to every VM you own.

How it works: the key is stored in exe.dev's LLM integration, not on your VMs. VMs reach models at https://llm.int.exe.xyz, and exe.dev adds your key at the network edge. Code on a VM, including an agent, can use the key but can never read it.

References: Bring Your Own Key · LLM Integration · Attaching Integrations


@gregoryfoster
gregoryfoster / stuck-bracketed-paste.md
Created October 2, 2026 17:09
Pastes into macOS Terminal wrapped in 00~ … 01~: stuck bracketed paste mode, cause and fix

Pastes into macOS Terminal wrapped in 00~ … 01~: stuck bracketed paste mode

Symptom

You copy a command (from VS Code, a browser, anywhere) and paste it into a macOS Terminal window. The pasted text arrives as:

00~gcloud storage buckets add-iam-policy-binding gs://example …01~
@gregoryfoster
gregoryfoster / edgi-problem_solved.md
Created August 22, 2017 22:26
EDGI Application - problem solved working with a remote team

EDGI Remote Project Manager - Application

A problem solved coordinating a remote team

For many years, I championed the creation and operation of the stori.es SaaS platform for Consumer Reports. This user-generated content management system enables non-profits to collect qualitative and quantitative data from their supporters: real stories from real people. That data is exceptionally valuable both in bulk and at the level of individual experiences reported by faithful and verified observers.

Activity on many data collection platforms comes in bursts driven by events or directed by outreach efforts including email blasts. Consumer Reports is a large non-profit, and their trustworthiness and broad mission enabled the acquisition of a large email house file greater than one million people. Our SaaS infrastructure was hosted on Amazon Web Services and supported auto-scaling, but it could take a few minutes to boot up new EC2 instances once scaling thresholds were reached. Worse, we had yet to address

@gregoryfoster
gregoryfoster / ose_linux-usb_stick_via_mac_os_x-hybrid_image.md
Last active April 7, 2017 17:11
Create a bootable Open Source Ecology (OSE) Linux USB Stick on Mac OS X

Create a bootable Open Source Ecology (OSE) Linux USB Stick on Mac OS X

Download

Download the latest OSE Linux ISO disk image (wiki, Google Drive). Please note there may be two disk images to choose from: a standard disk image and a hybrid disk image (source). The hybrid disk image is preferred.

Insert your USB Stick and determine its device identifier

  1. Insert USB stick
  2. Open a Terminal window

Keybase proof

I hereby claim:

  • I am gregoryfoster on github.
  • I am gregoryfoster (https://keybase.io/gregoryfoster) on keybase.
  • I have a public key ASCu3EU63M2z_l1LV83uMs-prMX6ItvgvsV_LM2ABnwDIgo

To claim this, I am signing this object:

Feb 1, 2010 5:32:53 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: JNDI not configured for solr (NoInitialContextEx)
Feb 1, 2010 5:32:53 PM org.apache.solr.core.SolrResourceLoader locateSolrHome
INFO: using system property solr.solr.home: /private/var/domain/consumersunion.org/stories/src/app/share_your_story/solr
Feb 1, 2010 5:32:53 PM org.apache.solr.core.SolrResourceLoader <init>
INFO: Solr home set to '/private/var/domain/consumersunion.org/stories/src/app/share_your_story/solr/'
Feb 1, 2010 5:32:53 PM org.apache.solr.core.SolrResourceLoader replaceClassLoader
INFO: Adding 'file:/private/var/domain/consumersunion.org/stories/src/app/share_your_story/solr/lib/lucene-spatial-2.9.1.jar' to classloader
Feb 1, 2010 5:32:53 PM org.apache.solr.core.SolrResourceLoader replaceClassLoader
INFO: Adding 'file:/private/var/domain/consumersunion.org/stories/src/app/share_your_story/solr/lib/solr-spatial-light-0.0.1.jar' to classloader