Skip to content

Instantly share code, notes, and snippets.

View mikestaub's full-sized avatar
🐝
working hard on peapods.com

Mike Staub mikestaub

🐝
working hard on peapods.com
View GitHub Profile
@mikestaub
mikestaub / ilograph.com.0.2.0.yaml
Last active August 31, 2024 19:08
ilograph.com diagrams for atproto.com
# use https://app.ilograph.com to edit and view this document
# tutorials are here https://www.ilograph.com/docs/editing/tutorial/#making-some-simple-changes
# author: Mike Staub <[email protected]>
# Lexicons are here: https://rdmurphy.github.io/atproto-openapi-types
# Learn more about atproto.com here: https://github.com/atproto-developers
description: |-
Architecture and sequence diagrams for the ATprotocol and Bluesky social app network. Generated from source code and whitepaper reference. https://arxiv.org/pdf/2402.03239
resources:
@mikestaub
mikestaub / webllm-demo.html
Last active August 13, 2024 13:31
webllm demo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Triple LLM Inference Demo</title>
<style>
.container {
display: flex;
flex-direction: column;
@mikestaub
mikestaub / cloudformation.yml
Created July 26, 2024 04:08
cloudformation template to demo AWS lambda with SSE
AWSTemplateFormatVersion: '2010-09-09'
Description: 'CloudFormation template for SSE with Lambda Function URL'
Resources:
LambdaExecutionRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
@mikestaub
mikestaub / aichat-config.yml
Created June 26, 2024 21:18
aichat-config.yml
model: groq
clients:
- type: openai-compatible
name: groq
api_base: https://api.groq.com/openai/v1
api_key: REPLACE_ME
- type: openai
api_key: REPLACE_ME
api_base: https://api.openai.com/v1
const fetchRssFeed = async () => {
const response = await fetch(
"https://hnrss.org/frontpage?points=100&count=10"
);
const text = await response.text();
const items = text.split("<item>").slice(1);
return items.map((item) => {
let title = item.match(/<title>(.*?)<\/title>/)[1];
@mikestaub
mikestaub / bitcoin-transaction-sequence-diagram
Created September 23, 2023 13:15
bitcoin transaction ilograph.com sequence diagram
resources:
- id: User
name: User
- id: WalletSoftware
name: Wallet Software
- id: BitcoinNetwork
name: Bitcoin Network
- id: MinerNodes
name: Miner Nodes
Verifying my Blockstack ID is secured with the address 1FPXrj8zt93w9cXBCacSLhpXaiJJMx4i3y https://explorer.blockstack.org/address/1FPXrj8zt93w9cXBCacSLhpXaiJJMx4i3y

Keybase proof

I hereby claim:

  • I am mikestaub on github.
  • I am mikestaub (https://keybase.io/mikestaub) on keybase.
  • I have a public key ASBiXIvpy5rbGiops51gxgs7QdTOJTu9tFjymrqp9bEIUQo

To claim this, I am signing this object:

9a9710fbd36210e32d814af5877986b1c5f04ca222bffbea8c66a49a9a93d53a6fc63dcad794fde17abc103bf3c19f1cfcafd50e78240f224200f4180f8e461d
@mikestaub
mikestaub / .hyper.js-windows
Created November 11, 2018 17:58
.hyper.js-windows
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
windowSize: [1280, 720],
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',