Skip to content

Instantly share code, notes, and snippets.

View thonkinator's full-sized avatar
💤
Sleeping

Patrick Martin thonkinator

💤
Sleeping
View GitHub Profile
@thonkinator
thonkinator / miniflare-in-sveltekit.md
Last active October 27, 2023 11:01
Miniflare in Sveltekit

Miniflare in SvelteKit!

This requires the package miniflare (NOT any of the @miniflare/-scoped packages), as well as @cloudflare/workers-types if you're using TypeScript. For setting up @sveltejs/adapter-cloudflare, see https://kit.svelte.dev/docs/adapter-cloudflare

// src/hooks.server.ts
import { dev } from "$app/environment";
import type { Miniflare } from "miniflare";
@thonkinator
thonkinator / iTerm2inHTerm.js
Last active May 17, 2023 21:09
iTerm2 colors in hTerm (crosh/crostini)
const palette = [
"#202124", /* 0: black */ // set this to #000 if you want
"#c91b00", /* 1: red */
"#00c200", /* 2: green */
"#c7c400", /* 3: yellow */
"#0225c7", /* 4: blue */
"#c930c7", /* 5: magenta */
"#00c5c7", /* 6: cyan */
"#c7c7c7", /* 7: white */
"#676767", /* 8: brblack */
@thonkinator
thonkinator / iTerm2inVSCode.md
Created February 23, 2023 03:57
iTerm2 colors in VSCode terminal

Add the following to your settings.json:

"workbench.colorCustomizations": {
	"terminal.ansiBlack": "#000",
	"terminal.ansiBrightBlack": "#676767",
	"terminal.ansiRed": "#c91b00",
	"terminal.ansiBrightRed": "#ff6d67",
	"terminal.ansiGreen": "#00c200",
	"terminal.ansiBrightGreen": "#5ff967",
	"terminal.ansiYellow": "#c7c400",

Keybase proof

I hereby claim:

  • I am thonkinator on github.
  • I am patrickmartin (https://keybase.io/patrickmartin) on keybase.
  • I have a public key ASAiLqVeZKe1mFy5jRFo-60qghV9jM3wPy1L-rXWjqmPvgo

To claim this, I am signing this object: