Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# This script is for installing the latest version of Turso CLI on your machine.
set -e
# Terminal ANSI escape codes.
reset="\033[0m"
bright_blue="${reset}\033[34;1m"
@KyleAMathews
KyleAMathews / lambda.md
Last active May 13, 2022 00:49
Using Kafka and a Samza-like node.js architecture

Disclaimer

I'm still very new to Kafka, eventsourcing, stream processing, etc. I'm in the middle of building my first production system with this stuff and am writing this at the request of a few folks on Twitter. So if you do have experience, please do me and anyone else reading this a favor by pointing out things I get wrong :)

Inspirations

let mapleader = ','
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin('~/.config/nvim/plugged')
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
import React from "react"
import { render, Static, Box, Color, Text } from "ink"
import BigText from "ink-big-text"
import BBox from "ink-box"
import TextInput from "ink-text-input"
import { Tabs, Tab } from "ink-tab"
import _ from "lodash"
const purple = [102, 51, 153]
const hexPurple = `#663399`
@import "modular-scale";
@import "functions";
$base-font-size: 16px;
$base-line-height: 24px;
$rhythm-unit: "rem";
// Setup vertical rhythm
@include establish-baseline;
diff --git a/packages/gatsby-recipes/src/gui.js b/packages/gatsby-recipes/src/gui.js
index a7baf92b1..378477678 100644
--- a/packages/gatsby-recipes/src/gui.js
+++ b/packages/gatsby-recipes/src/gui.js
@@ -26,6 +26,7 @@ const {
defaultExchanges,
subscriptionExchange,
} = require(`urql`)
+const UrqlProvider = Provider
const { SubscriptionClient } = require(`subscriptions-transport-ws`)
@KyleAMathews
KyleAMathews / setup-statsd.sh
Created April 28, 2012 00:57 — forked from collegeman/setup-statsd.sh
Turn an Ubuntu 12.04 Amazon EC2 Micro instance into a StatsD/Bucky/Graphite server
# install git
sudo apt-get install g++ curl libssl-dev apache2-utils make
sudo apt-get install git-core
# download the Node source, compile and install it
cd /opt
git clone https://github.com/joyent/node.git
cd node
git checkout v0.6
./configure
@KyleAMathews
KyleAMathews / error
Created May 30, 2020 23:45
mdx-js/mdx failing
/Users/kylemathews/programs/recipes-test/node_modules/trough/wrap.js:33
throw error
^
SyntaxError: unknown: Unexpected token (31:2)
29 | />
30 | export const FileTest = () => {
> 31 | const data = useInputByUuid("blog-title")
| ^