shatty

share tty.

Install with 'gem install shatty'

start sharing

shatty share

The defaults will:

Here's an example:

% shatty share 
Sending output to: http://shatty.semicomplete.com:8200/s/88326b7f-f43e-4192-8987-c496b985abc1
View commands
  wget -qO- http://shatty.semicomplete.com:8200/s/88326b7f-f43e-4192-8987-c496b985abc1
  curl -Lso- http://shatty.semicomplete.com:8200/s/88326b7f-f43e-4192-8987-c496b985abc1
  shatty play http://shatty.semicomplete.com:8200/s/88326b7f-f43e-4192-8987-c496b985abc1

This lets you share a terminal over http. It's built such that wget and curl can act as viewers so whoever is viewing will not require the shatty player.

Tricks

Record an active tmux session

# From any shell in your tmux session:
% TMUX= ruby shatty.rb record --headless tmux -2 attach

The '–headless' is required otherwise you end up tmux printing to tmux and you get a loop.

TODO

web server

You can run the webserver (basically a thin proxy) with 'ruby web.rb'