(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:
| .DS_Store | |
| *.log | |
| tmp/ |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| #!/usr/bin/python | |
| # Equivalent of "tail -f" as a webpage using websocket | |
| # Usage: webtail.py PORT FILENAME | |
| # Tested with tornado 2.1 | |
| # Thanks to Thomas Pelletier for it's great introduction to tornado+websocket | |
| # http://thomas.pelletier.im/2010/08/websocket-tornado-redis/ | |
| import tornado.httpserver |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)####sessions
tmux new -s session_name # new session by name
tmux attach -t session_name # attach session by name (you can also use a instead of attach)
tmux switch -t session_name # switch session by name (you can also use a instead of attach)
tmux list-sessions # list existing sessions
bind-key : new -s session_name # new session from within a session
// detach
tmux detach # detach currently attached session
| /* global _ */ | |
| /* | |
| * Complex scripted dashboard | |
| * This script generates a dashboard object that Grafana can load. It also takes a number of user | |
| * supplied URL parameters (int ARGS variable) | |
| * | |
| * Global accessable variables | |
| * window, document, $, jQuery, ARGS, moment | |
| * | |
| * Return a dashboard object, or a function |
# uname -a
Linux base 4.0.5-gentoo #1 SMP Wed Jul 1 02:23:16 JST 2015 x86_64 Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz GenuineIntel GNU/Linux# emerge -pvq openldap openssh sssd sudo
[ebuild R ] net-nds/openldap-2.4.38-r2 USE="berkdb crypt gnutls ipv6 minimal sasl ssl syslog tcpd -cxx -debug -experimental -icu -iodbc -kerberos -odbc -overlays -perl -samba (-selinux) -slp -smbkrb5passwd" ABI_X86="(64) -32 (-x32)" Picking the right architecture = Picking the right battles + Managing trade-offs
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of