Skip to content

Instantly share code, notes, and snippets.

@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 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
@mies
mies / frontend-developer.md
Created June 10, 2015 10:36
frontend-developer.md

Frontend Developer at wercker

Wercker is on a mission to change the way web applications are created and delivered. We're building a platform and tool for building, testing and deploying in the modern world of microservices, containers and cloud.

The wercker interface team is dedicated to designing and building beautiful web applications which our customers use on a daily basis. The team incorporates graphical design, UI/UX and code to develop the wercker web interface, the product you will be working mostly on. We ship features every day and are highly involved in the product development process.

We're seeking developers that are passionate about usability, user experience and interactive design. Great HTML, CSS, and Javascript skills are required for this position. You have a good understanding of modern frontend architectures with knowledge of jQuery and at least one frameworks such as Backbone or Angular. You're comfortable in CSS and SASS, have an eye for detail and have worked within software engi