Skip to content

Instantly share code, notes, and snippets.

@barnaby
barnaby / m0-claude-in-tmux.sh
Created August 2, 2026 01:22
Run Claude Code in tmux with machine0
# Install machine0
curl -LsSf https://machine0.io/install.sh | sh
# Connect your accounts & MCPs
machine0 integrations connect claude-code
machine0 integrations connect github
machine0 integrations add linear --url https://mcp.linear.app/mcp
# Create your VM
machine0 new claude --image nixos-25-11-claude-tmux --profile default --region us-west
@barnaby
barnaby / .screenrc
Created September 27, 2020 10:30
screenrc file
startup_message off
# if we accidentally hangup, don't be all attached when we come back.
autodetach on
# more scrollbacks!
defscrollback 10000
# disable use of the "alternate" terminal
# thus allowing scrollbars to function as normal in
@barnaby
barnaby / gulpfile.js
Last active April 17, 2022 12:45
Takana and gulp.js playing nice
var gulp = require('gulp'),
takana = require('takana');
gulp.task('takana', function() {
takana.run({
path: __dirname,
includePaths: [] // Optional
});
});
@barnaby
barnaby / compiler.rb
Created February 22, 2013 17:20
Compile & execute Ruby as bytecode. Works in 1.9.3
#
#
# Compile & execute Ruby as bytecode
#
#
require 'rbconfig'
require 'dl'
require 'fiddle'
require 'strscan'