Skip to content

Instantly share code, notes, and snippets.

View 0xBigBoss's full-sized avatar
🤠

Big Boss 0xBigBoss

🤠
View GitHub Profile
@0xBigBoss
0xBigBoss / tmux-vim-cheatsheet.md
Last active August 23, 2025 07:32
Comprehensive tmux + vim cheatsheet for server work and development

TMUX + VIM ULTIMATE CHEATSHEET

Default prefix is Ctrl-b (shown as C-b below)

🚀 TMUX ESSENTIALS

Session Management

tmux new -s name           # New named session
tmux ls                    # List sessions
tmux a -t name            # Attach to named session
@0xBigBoss
0xBigBoss / zshy-asset-handling-guide.md
Last active August 22, 2025 05:16
zshy Asset Handling Guide - How to include custom files (LICENSE, README, JSON, proto, ABI) in TypeScript packages

zshy Asset Handling Guide

⚠️ IMPORTANT: zshy is NOT a bundler - it copies assets but does NOT transform them into JavaScript modules. Assets remain as separate files that must be accessed at runtime.

Overview

zshy automatically handles non-JavaScript assets and copies them to the output directory during builds. This feature enables including custom files like LICENSE, README.md, Protocol Buffer definitions, Ethereum ABIs, and other artifacts in your TypeScript packages without additional configuration.

Key Concept: zshy detects imported assets and copies them to the output directory, but does not make them available as JavaScript modules. The assets remain as separate files that you access at runtime.

#!/usr/bin/env bun
"use strict";
const fs = require("fs");
const { execSync } = require("child_process");
const path = require("path");
// ANSI color constants
const c = {
cy: '\033[36m', // cyan

Claude Code Instructions

This document contains guidelines for Claude Code to follow when working on this project.

Development Process

  • Keep development agile and iterative with tight feedback loops
  • Focus on small wins rather than trying to accomplish too much at once
  • Maintain awareness of the current code state, desired state, and results
  • Follow the Observe-Orient-Run-Reflect cycle:
# Written by https://github.com/DeterminateSystems/nix-installer.
# The contents below are based on options specified at installation time.
download-buffer-size = 524288000
max-jobs = 8
cores = 2
trusted-users = root urname
@0xBigBoss
0xBigBoss / docker-compose.yml
Created March 2, 2025 23:35
Docker compose for running a Shovel instance.
services:
shovel:
image: docker.io/indexsupply/shovel:af07
container_name: shovel
restart: unless-stopped
ports:
- "8383:80"
env_file:
- .env
volumes:
@0xBigBoss
0xBigBoss / sieve_of_eratosthenes.py
Created January 31, 2025 21:40
Sieve of Eratosthenes algorithm
def sieve_of_eratosthenes(n: int) -> list[int]:
"""
Generate all prime numbers up to n using the Sieve of Eratosthenes algorithm.
Args:
n (int): Upper bound for generating prime numbers
Returns:
list[int]: List of all prime numbers up to n
@0xBigBoss
0xBigBoss / shm.c
Created January 31, 2025 04:22
Shared Memory Example
/*
* Example 1: POSIX Shared Memory
* This example shows how to create, write to, and read from a POSIX shared memory segment
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/mman.h>
@0xBigBoss
0xBigBoss / ray-start.sh
Last active January 31, 2025 02:57
A script to start ray nodes within docker.
#!/bin/bash
# Help function to display usage
show_help() {
echo "Usage: $0 [OPTIONS]"
echo
echo "Options:"
echo " --image IMAGE Docker image to use (required)"
echo " --address IP Head node IP address (required)"
echo " --mode MODE Either 'head' or 'worker' (required)"
@0xBigBoss
0xBigBoss / grpo_demo.py
Created January 31, 2025 00:53 — forked from willccbb/grpo_demo.py
GRPO Llama-1B
# train_grpo.py
import re
import torch
from datasets import load_dataset, Dataset
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import LoraConfig
from trl import GRPOConfig, GRPOTrainer
# Load and prep dataset