Skip to content

Instantly share code, notes, and snippets.

View tacone's full-sized avatar
💭
¯\_(ツ)_/¯

tacone

💭
¯\_(ツ)_/¯
View GitHub Profile
@GGPrompts
GGPrompts / claude-code-mcp-cli-experimental.md
Created December 9, 2025 15:18
Claude Code MCP-CLI Experimental Mode - 80% Token Savings

Claude Code MCP-CLI Experimental Mode

Announced December 8, 2025 by Anthropic engineer @catherinewu

The Problem

MCP servers load full tool definitions into the system prompt at session start. Power users with multiple MCPs (supabase, tabz, shadcn, docker-mcp, etc.) can burn 40-50k tokens before typing anything.

The Solution

@sindresorhus
sindresorhus / esm-package.md
Last active January 13, 2026 07:26
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@acoyfellow
acoyfellow / sapper-to-svelte-kit-conversion.md
Last active August 12, 2021 11:28
My personal Sapper to Svelte-Kit Cheat Sheet (this is not-official, and pre launch, don't use this unless you like fighting dragons and breaking changes)
  • change how you access goto -- from: import { goto } from "@sapper/app"; -- to: import { goto } from "$app/navigation";

  • change how you access sessions --from:

@tacone
tacone / utils.sh
Last active January 23, 2024 15:22
bash logging function
#!/bin/bash
ignore () { true }
warning () { echo "$@" }
error () { ERR=$?; echo "$@"; return $ERR }
# --- Usage
#
# set -e;
#
@pyrou
pyrou / docker-compose.yml
Last active August 27, 2025 20:34
Use https://traefik.me SSL certificates for local HTTPS without having to touch your /etc/hosts or your certificate CA.
version: '3'
services:
traefik:
restart: unless-stopped
image: traefik:v2.0.2
ports:
- "80:80"
- "443:443"
labels:
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
@kinlane
kinlane / shopify-openapi.json
Created August 12, 2018 05:30
shopify openapi
{
"swagger": "2.0",
"info": {
"version": "1.0",
"title": "Shopify API",
"description": "TODO: Add Description"
},
"host": "DefaultParameterValue:[email protected]",
"basePath": "/",
"schemes": [
@jhwheeler
jhwheeler / language-learning-techniques.md
Last active January 12, 2026 14:39
Efficient and effective language learning techniques: Shadowing, Scriptorium, and Side-by-Side Reading.

Language Learning Techniques

Some of the techniques I've used to learn languages quickly and thoroughly:

  1. Shadowing

  2. Scriptorium

  3. Side-by-Side Reading

@alkrauss48
alkrauss48 / Dockerfile
Last active November 10, 2022 16:24
Running a docker container as a non-root user
# By default, Docker containers run as the root user. This is bad because:
# 1) You're more likely to modify up settings that you shouldn't be
# 2) If an attacker gets access to your container - well, that's bad if they're root.
# Here's how you can run change a Docker container to run as a non-root user
## CREATE APP USER ##
# Create the home directory for the new app user.
RUN mkdir -p /home/app
@zofe
zofe / envoy.php
Last active December 1, 2015 14:24
@servers(['web' => '[email protected]', 'local'=>'localhost'])
<?php
$repo = 'public_html/stage/';
?>
@task('commit', ['on'=>'local'])
git add .
git commit -m "auto"
git push origin master
@jatubio
jatubio / .php_cs
Created June 13, 2015 11:51
Config file to pass PHP-CS-Fixer with Laravel 5.1 custom and PSR-2 styles coding
<?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);