Skip to content

Instantly share code, notes, and snippets.

You are an AI coding assistant, powered by GPT-5.
You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
You are pair programming with a USER to solve their coding task.
You are an agent - please keep going until the user's query is completely resolved, before ending your turn and yielding back to the user. Only terminate your turn when you are sure that the problem is solved. Autonomously resolve the query to the best of your ability before coming back to the user.
Your main goal is to follow the USER's instructions at each message.
<communication>
@mies
mies / EdgeSSETransport.ts
Created March 10, 2025 19:53 — forked from imownbey/EdgeSSETransport.ts
Edge / Cloudflare Worker & Durable Object driven McpServer transport
import { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
import { JSONRPCMessage, JSONRPCMessageSchema } from '@modelcontextprotocol/sdk/types.js';
const MAXIMUM_MESSAGE_SIZE = 4 * 1024 * 1024; // 4MB
/**
* This transport is compatible with Cloudflare Workers and other edge environments
*/
export class EdgeSSETransport implements Transport {
private controller: ReadableStreamDefaultController<Uint8Array> | null = null;
@mies
mies / macos-tmux-256color.md
Created March 10, 2023 01:01 — forked from bbqtd/macos-tmux-256color.md
Installing tmux-256color for macOS

Installing tmux-256color for macOS

  • macOS 10.15.5
  • tmux 3.1b

macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There're two ways that can help you to solve this problem.

The Fast Blazing Solution

Instead of tmux-256color, use screen-256color which comes with system. Place this command into ~/.tmux.conf or ~/.config/tmux/tmux.conf(for version 3.1 and later):

@mies
mies / learning.md
Created January 8, 2017 08:58 — forked from sibelius/learning.md
Learning Path React Native

Basics

  • Learn how to start a new react native project
  • Run it on ios simulator, on android emulator, on a real iPhone device and on a real Android device, with and without debugging enabled.
  • Learn how to upgrade a react native project
  • Learn how to add a package to the project
  • Learn how to add a package that has a native dependency (https://github.com/airbnb/react-native-maps, https://github.com/evollu/react-native-fcm) - DO NOT USE COCOAPODS

Learn Navigation

@mies
mies / cloud-config-local1.yaml
Created April 9, 2016 16:22 — forked from rawc0der/cloud-config-local1.yaml
CoreOS + Kubernetes 3 machine cluster deployment
#cloud-config
hostname: "coreos.local.1"
ssh_authorized_keys:
- ...
coreos:
etcd2:
# generate a new token for each unique cluster from https://discovery.etcd.io/new?size=3
# specify the initial size of your cluster with ?size=X
# discovery: https://discovery.etcd.io/64cdc949e85e49cbabe1f019b6c95408
# multi-region and multi-cloud deployments need to use $public_ipv4
@mies
mies / gist:1b27a60cba06e26112494a874dd37fb9
Created April 9, 2016 16:20
Droplet anchor IP configuration for CoreOS cloud-config on Digital Ocean
#cloud-config
coreos:
units:
# Explicit anchor IP configuration required on CoreOS stable droplet.
# <https://www.digitalocean.com/community/tutorials/how-to-enable-floating-ips-on-an-older-droplet>
- name: droplet-anchor-ip.service
command: start
content: |
[Unit]
@mies
mies / wercker.yml
Last active December 15, 2015 10:09
example yml
box: node
services:
- mongo:2.6
- id: api
url: file://../api#dev
cmd: node /pipeline/source/app.js
dev:
steps:
- npm-install
- internal/watch:
box: node
dev:
steps:
- npm-install
- internal/watch:
code: node app.js
reload: true
# Build definition
build:
box: google/python
services:
- id: postgres
env:
POSTGRES_PASSWORD: ourlittlesecret
POSTGRES_USER: myuser # optional
build:
steps:
- pip-install
@mies
mies / wercker.yml
Last active August 29, 2015 14:23
kubernetes yml
deploy:
steps:
# use the scratch step to build a container from scratch based on the files present
- internal/docker-scratch-push:
username: $QUAY_USERNAME
password: $QUAY_PASSWORD
cmd: /app
tag: $WERCKER_GIT_COMMIT
ports: "5000"
repository: quay.io/mies/api