Skip to content

Instantly share code, notes, and snippets.

@shazow
shazow / oss-stt.md
Created March 24, 2026 13:55
Local-first OSS speech-to-text right now, via ChatGPT

Open-source Wayland / local-first voice dictation projects

A comprehensive list of the projects we discussed, with a short description, primary programming language, and current GitHub star count.

Star counts were checked on March 24, 2026, so they will drift over time.

Project Repo Short description Primary language Stars
Handy cjpais/Handy Cross-platform, fully offline speech-to-text desktop app focused on privacy and extensibility. Rust 18.5k
hyprwhspr goodroot/hyprwhspr Native Linux system-wide dictation with local-first defaults, fast model support, and Hyprland-friendly UX. Python 892
@shazow
shazow / nix-in-cloud-agent.sh
Created March 12, 2026 21:53
How to get nix in a cloud coding agent, tested on Google Jules and Codex Web.
curl --proto =https --tlsv1.2 -sSf -L https://install.determinate.systems/nix | \
sh -s -- install linux \
--no-confirm \
--init none \
--extra-conf "filter-syscalls = false" --no-start-daemon
sudo /nix/var/nix/profiles/default/bin/nix-daemon >/dev/null 2>&1 &
sleep 1
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
// SPDX-License-Identifier: MIT
// Run with:
// $ nix develop github:shazow/foundry.nix/monthly
// $ forge init
// Add test/TheDAO_Withdraw.t.sol
// $ forge test -vvv ./test/TheDAO_Withdraw.t.sol --fork-url https://ethereum-rpc.publicnode.com
pragma solidity ^0.8.13;
import {Test, console} from "forge-std/Test.sol";
@shazow
shazow / check-workflow-commits
Last active August 29, 2024 18:26
Pass in workflow yaml files as stdin, find `uses:` strings with hashes in them and checks if they exist in the claimed repo.
#!/usr/bin/env bash
# Pass in workflow yaml files as stdin, find `uses:` strings with hashes in them and checks if they exist in the claimed repo.
# Returns non-zero code on failure.
#
# Uses this undocumented endpoint: https://stackoverflow.com/questions/29992441/github-api-identify-the-branches-that-contain-a-given-commit
# https://github.com/$OWNER/$REPO/branch_commits/$COMMIT
#
# Example:
# $ ./check-workflow-commits < .github/workflows/publish.yml
# $ $? && echo "Everything is okay" || "Things are bad"
@shazow
shazow / semaphore-v4-ceremony_attestation.log
Created June 17, 2024 22:03
Attestation for Semaphore V4 Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm shazow-6292 and I have contributed to the Semaphore V4 Ceremony.
The following are my contribution signatures:
Circuit # 1 (semaphorev4-1)
Contributor # 165
Contribution Hash:
55b94e14 3604b455 1c70c417 921dd94f
ce7cd925 a75eb798 089b84eb 4dcf98b1
9d1f7e7e bc8c57ab 2deb9c83 b20dc01d
c4a5f200 a0d1380b ab19f852 59f1ee73
@shazow
shazow / flake.nix
Created March 2, 2023 02:10
Flake for tree-sitter with source grammars available to it.
{
inputs = {
utils.url = "github:numtide/flake-utils";
nixpkgs.url = "/home/shazow/local/src/github.com/NixOS/nixpkgs";
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p jq curl
set -e
prefix() {
declare token="${1}"
while read line; do
echo "${token}${line}"
done
@shazow
shazow / attestation.txt
Created April 5, 2022 21:06
Attestation
I contributed to the Semaphore Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: semaphore16
Contributor # 85
Hash: d545af57 83ad024e e0710f9f 622cdf84
9b4c3c57 af249c24 405fcf11 af1f5fd6
53ca6737 46092f75 9203be93 ab44e991
48051dab 09678842 fb528174 dce220ad
@shazow
shazow / flashbotnfts.ts
Last active May 26, 2023 01:20
WIP: Flashbot NFTs
import { BigNumber, providers, Wallet } from "https://esm.sh/ethers";
import { FlashbotsBundleProvider, FlashbotsBundleResolution } from "https://esm.sh/@flashbots/ethers-provider-bundle";
const FLASHBOTS_AUTH_KEY = Deno.env.get('FLASHBOTS_AUTH_KEY');
const WALLET_PRIVATE_KEY = Deno.env.get('WALLET_PRIVATE_KEY');
const GWEI = BigNumber.from(10).pow(9);
const PRIORITY_FEE = GWEI.mul(3);
const LEGACY_GAS_PRICE = GWEI.mul(12);
const BLOCKS_IN_THE_FUTURE = 2;
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreif5cgttygibnalhnupkypppjalanfkip7vdyoit3hojhgs5tsh7im ✅
Create your profile today to start building social connection and trust online at https://3Box.io/