start new:
tmux
start new with session name:
tmux new -s myname
| These commands are based on a askubuntu answer http://askubuntu.com/a/581497 | |
| To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below. | |
| USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING. | |
| ABSOLUTELY NO WARRANTY. | |
| If you are still reading let's carry on with the code. | |
| sudo apt-get update && \ | |
| sudo apt-get install build-essential software-properties-common -y && \ | |
| sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ |
| // how to use boost.asio + sendfile(2) | |
| // Michał Papierski <michal@papierski.net> | |
| #include <iostream> | |
| #include <string> | |
| #include <boost/asio.hpp> | |
| #include <boost/make_shared.hpp> | |
| #include <boost/shared_ptr.hpp> | |
| #include <boost/ref.hpp> | |
| #include <boost/bind.hpp> | |
| #include <boost/enable_shared_from_this.hpp> |
| _ssh_auth_save() { | |
| ln -sf "$SSH_AUTH_SOCK" "$HOME/.ssh/ssh-auth-sock.$HOSTNAME" | |
| } | |
| alias screen='_ssh_auth_save ; export HOSTNAME=$(hostname) ; screen' | |
| alias tmux='_ssh_auth_save ; export HOSTNAME=$(hostname) ; tmux' |