(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| <? | |
| /* | |
| PHP is UNIX - Simple preforking echo server in PHP | |
| ************************************************** | |
| The code here is related to: | |
| http://tomayko.com/writings/unicorn-is-unix | |
| http://jacobian.org/writing/python-is-unix/ | |
| http://plasmasturm.org/log/547/ - perl is unix |
| """ | |
| Simple forking echo server built with Python's SocketServer library. A more | |
| Pythonic version of http://gist.github.com/203520, which itself was inspired | |
| by http://tomayko.com/writings/unicorn-is-unix. | |
| """ | |
| import os | |
| import SocketServer | |
| class EchoHandler(SocketServer.StreamRequestHandler): |
| """ | |
| Simple preforking echo server in Python. | |
| Python port of http://tomayko.com/writings/unicorn-is-unix. | |
| """ | |
| import os | |
| import sys | |
| import socket |