Skip to content

Instantly share code, notes, and snippets.

View zscole's full-sized avatar
☠️
dead

zak zscole

☠️
dead
View GitHub Profile
@zscole
zscole / ADVERSARIAL-CONSENSUS.md
Created February 6, 2026 04:10
Adversarial Consensus Protocol - Multi-agent engineering review with built-in dissent

Adversarial Consensus Protocol

Overview

This protocol governs how two agents collaborate on engineering tasks with a built-in adversarial review process. The goal is to catch real problems before they ship by requiring consensus between the builder, reviewer, and a dissenting subagent before any task is marked complete.

Roles

  • Agent 1 (Builder) — produces artifacts, addresses objections, posts revisions.
  • Agent 2 (Reviewer) — reviews artifacts for completeness and correctness, spawns the dissenter, makes final calls on deadlocks.
@zscole
zscole / telemetry_monitor.sh
Created August 15, 2025 19:54
Captures network connections from VS Code and Cursor
#!/bin/bash
# IDE Telemetry Monitor
# Captures network connections from VS Code and Cursor
# Run: ./telemetry_monitor.sh
# Default: 60 seconds
set -euo pipefail
echo "IDE Telemetry Monitor"
@zscole
zscole / go.sh
Created July 18, 2023 07:06
sets up go on mac
#!/bin/bash
# Check if Go is already installed
if go version &> /dev/null
then
echo "Go is already installed. Exiting."
exit 0
fi
# Set the version of Go to install
contract EtherStore {
mapping(address => uint) public balances;
function deposit() public payable {
balances[msg.sender] += msg.value;
}
function withdraw() public {
uint bal = balances[msg.sender];
require(bal > 0);
contract EtherStore {
mapping(address => uint) public balances;
function deposit() public payable {
balances[msg.sender] += msg.value;
}
function withdraw() public {
uint bal = balances[msg.sender];
require(bal > 0);
@zscole
zscole / workstation_setup.sh
Created November 5, 2020 15:17
Script to set up and configure Linux workstation after fresh PopOS install
#!/bin/bash
GIT_USER_NAME= #insert github username
USER_EMAIL= #insert email
apt-get update && upgrade -y
apt-get autoremove -y
apt-get install gdebi-core wget apt-transport-https ca-certificates apt-utils software-properties-common tar -y
apt-get install make cmake g++ g++-9 clang-format clang-tidy snapd vim -y
apt-get update
services:
- name: lighthouse
image: sigp/lighthouse
script:
inline: "lighthouse bn testnet -f quick 4 1575650550"
resources:
cpus: 7
memory: 8 GB
storage: 100 GiB
task-runners:
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update &&\
apt-get install -y apt-utils expect git git-extras software-properties-common \
inetutils-tools wget ca-certificates curl build-essential libssl-dev golang-go \
pkg-config zip g++ zlib1g-dev unzip python
RUN wget https://github.com/bazelbuild/bazel/releases/download/0.25.1/bazel-0.25.1-installer-linux-x86_64.sh
RUN chmod +x bazel-0.25.1-installer-linux-x86_64.sh
Whiteblock, Inc. Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by Whiteblock, Inc. SE or its affiliates (“Whiteblock, Inc.”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to Whiteblock, Inc. in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact opensource@Whiteblock, Inc..com.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
Copyright License. You hereby grant, and agree to grant, t
@zscole
zscole / canto.go
Last active December 21, 2018 01:35
func (c *ctoStruct) makeProtocols(versions []uint) []p2p.Protocol {
protos := make([]p2p.Protocol, canto(versions))
for i, version := range versions {
version := version
protos[i] = p2p.Protocol{
Name: "cto",
Version: version,
Length: ProtocolLengths[version],
NodeInfo: c.nodeInfo,
Run: func(p *p2p.Peer, rw p2p.MsgReadWriter) error {