Skip to content

Instantly share code, notes, and snippets.

View bguiz's full-sized avatar

Brendan Graetz bguiz

View GitHub Profile
@bguiz
bguiz / mac-setup.md
Last active November 20, 2025 14:05

Status: WIP

Install software via brew

mkdir -p ~/code/
cd ~/code/

# Install brew itself
curl -fsSL "https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh" > brew-install.sh
@bguiz
bguiz / convert-gitbook-summary-md-to-mintlify-docs-json.js
Last active October 31, 2025 09:42
converts from gitbook's SUMMARY.md file to mintlify's docs.json file
#!/usr/bin/env node
const fs = require('node:fs/promises');
const path = require('node:path');
const gitbookParsers = require('gitbook-parsers');
const SUMMARY_PATH = '../.gitbook/SUMMARY.md';
const DOCS_JSON_PATH = '../.gitbook/docs.json';
const MV_COMMANDS_PATH = '../scripts/mv-commands.sh';
@bguiz
bguiz / technical_writer.yml
Created September 22, 2025 12:17
technical writer persona YAML file for use with impersonaid - used during livestream https://www.youtube.com/live/SfKve-Ec7RA
name: Technical Writer user
description: A technical writer with several years experience documenting and simplifying complex concepts for developers and users in the blockchain and crypto space, information architecture, maintaining developer portals and managing documentation projects looking to understand user journeys and content developers and stakeholders need to build dApps and gain product knowledge.
expertise:
technical: High
domain: High (in their content and technical writing, documentation area)
tools: Familiarity with git, command line,information architecture, markdown and content writing, documentation
background:
education: Bachelors degree or equivalent
experience: Several years in technical writing, documentation, user research and managing docs projects, limited technical experience
traits:
flowchart TD
%% style
classDef n fill:#3d3,stroke:#111,stroke-width:2px,font-size:56px;
linkStyle default stroke-width:2px;
%% touch points
tpx_google:::n@{ shape: rounded, label: "Google" }
tpi_site:::n@{ shape: rounded, label: "Inj site" }
tpi_site_build:::n@{ shape: rounded, label: "Inj site build page" }
tpi_summit_site:::n@{ shape: rounded, label: "Inj Summit site" }
#!/usr/bin/env node
import { ToolNode } from '@langchain/langgraph/prebuilt';
import {
StateGraph,
MessagesAnnotation,
MemorySaver,
START,
END,
interrupt,
Command,
@bguiz
bguiz / book.pdf
Last active February 7, 2021 03:39
tex-overlay-text-on-graphics
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bguiz
bguiz / yubi_gpg.sh
Created October 6, 2020 09:30 — forked from luisfontes19/yubi_gpg.sh
Yubikey GPG config
#!/bin/zsh
##
## This automation was created to be used with MACOS based on the instructions from drduh
## (https://github.com/drduh/YubiKey-Guide)
##
## You need to install gpg first:
## brew install gnupg hopenpgp-tools ykman pinentry-mac
## and GPG Suite can also come in handy (https://gpgtools.org/)
##
// web3 provider with fallback for old version
window.addEventListener('load', async () => {
// New web3 provider
if (window.ethereum) {
window.web3 = new Web3(ethereum);
try {
// ask user for permission
await ethereum.enable();
// user approved permission
{"id": "0d593b03242553b24568b3dbccceadd8cb419795091f6e75267f37d8e6100771c10b3bd55285eae9adc99c3e1b0a770f152e132c20c8425b94d43c7d65fc36a9"}
@bguiz
bguiz / .block
Last active September 28, 2018 03:08
license: gpl-3.0
height: 700
border: no