This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Pool Benchmarks (Standalone Gist) | |
| // | |
| // This single-file Go benchmark compares several pooling strategies: | |
| // - Interface sync.Pool with pointer indirection (e.g., *[]byte, *bytes.Buffer) | |
| // - Generic value slice pool (SlicePool[T]) | |
| // - Generic pointer pool (PtrPool[T]) | |
| // - Minimal ResettablePool (calls Reset() on Put) | |
| // | |
| // Usage: | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """claude_code_recovery.py - Emergency recovery tool for Claude Code session files | |
| Copyright (c) 2025 Sean Chittenden | |
| All rights reserved. | |
| Redistribution and use in source and binary forms, with or without | |
| modification, are permitted provided that the following conditions are met: | |
| 1. Redistributions of source code must retain the above copyright notice, this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sdb-sde are 64G zvols on a striped zpool of 8 mirrors | |
| fio was created by: | |
| lvcreate -L 240G -i4 -I64 -n fio TestVolGroup | |
| guest command: | |
| doas cpuset -c -l 16-31 -n ft:1 -- grub-bhyve -S -m /chyves/storage/guests/ubi0/device.map -r hd0,msdos1 -c /dev/nmdm52A -M 32G chy-ubi0; doas cpuset -c -l 16-31 -n ft:1 -- bhyve -A -H -P -S -c 16 -U ec30b988-f5aa-11e7-a76c-ac1f6b0a8cd2 -m 32G -s 0,hostbridge -s | |
| 4,ahci-hd,/dev/zvol/storage/chyves/guests/ubi0/disk0 -s 5,virtio-net,tap52 -s 6,kvirtio-net,mtu=1500,queues=4,intf=cc0,mac=00:07:43:3d:92:d1 -s 7,ahci-hd,/dev/zvol/storage/chyves/guests/ubi0/disk1 -s 8,ahci-hd,/dev/zvol/storage/chyves/guests/ubi0/disk2 -s 9,ahci-hd,/dev/zvol/storage/chyves/guests/ubi0/disk3 -s 10,ahci-hd,/dev/zvol/storage/chyves/guests/ubi0/disk4 -l com1,/dev/nmdm52A -s 31,lpc chy-ubi0 | |
| ARC MAX 8G (in use 8G) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package locktest | |
| import ( | |
| "sync" | |
| "testing" | |
| ) | |
| var l sync.Mutex | |
| func dLock() { |
- Create 10GB FreeBSD image using QEMU.
- Run the VM using xhyve.
- Mount host directory.
- Resize the image.
- OSX
- Homebrew
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Note that the -k flag here means we are ignoring cert warnings. | |
| # If security matters you should use the Circonus cert provided | |
| # here: http://login.circonus.com/pki/ca.crt | |
| KEY=$1 | |
| VALUE=$2 | |
| ENDPOINT_URL=$3 |
NewerOlder









