(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:
| $(document).ready(function() { | |
| // Support for AJAX loaded modal window. | |
| // Focuses on first input textbox after it loads the window. | |
| $('[data-toggle="modal"]').click(function(e) { | |
| e.preventDefault(); | |
| var url = $(this).attr('href'); | |
| if (url.indexOf('#') == 0) { | |
| $(url).modal('open'); | |
| } else { |
| #!/usr/bin/env python | |
| import sys, paramiko | |
| if len(sys.argv) < 5: | |
| print "args missing" | |
| sys.exit(1) | |
| hostname = sys.argv[1] | |
| password = sys.argv[2] |
| # Create a SSH connection | |
| import paramiko | |
| import os | |
| ssh = paramiko.SSHClient() | |
| ssh._policy = paramiko.WarningPolicy() | |
| ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) | |
| ssh_config = paramiko.SSHConfig() | |
| user_config_file = os.path.expanduser("~/.ssh/config") |
| # SFTP | |
| import paramiko | |
| channel = paramiko.Transport(('host', 22)) | |
| channel.connect(username='username', password='password') | |
| client = paramiko.SFTPClient.from_transport(channel) | |
| client.chdir('/tmp') | |
| print(client.getcwd()) |
| # set prefix to control-f | |
| set -g prefix C-f | |
| #unbind system defined prefix | |
| unbind C-b | |
| # helps in faster key repetition | |
| set -sg escape-time 0 | |
| # start session number from 1 rather than 0 |
| " Statusline (requires Powerline font) | |
| set statusline= | |
| set statusline+=%(%{&buflisted?bufnr('%'):''}\ \ %) | |
| set statusline+=%< " Truncate line here | |
| set statusline+=%f\ " File path, as typed or relative to current directory | |
| set statusline+=%{&modified?'+\ ':''} | |
| set statusline+=%{&readonly?'\ ':''} | |
| set statusline+=%= " Separation point between left and right aligned items | |
| set statusline+=\ %{&filetype!=#''?&filetype:'none'} | |
| set statusline+=%(\ %{(&bomb\|\|&fileencoding!~#'^$\\\|utf-8'?'\ '.&fileencoding.(&bomb?'-bom':''):'') |
| FROM alpine:latest | |
| LABEL MAINTAINER="Faizan Bashir <[email protected]>" | |
| # Linking of locale.h as xlocale.h | |
| # This is done to ensure successfull install of python numpy package | |
| # see https://forum.alpinelinux.org/comment/690#comment-690 for more information. | |
| WORKDIR /var/www/ |
| FROM alpine:latest | |
| LABEL MAINTAINER="Faizan Bashir <[email protected]>" | |
| # Linking of locale.h as xlocale.h | |
| # This is done to ensure successfull install of python numpy package | |
| # see https://forum.alpinelinux.org/comment/690#comment-690 for more information. | |
| WORKDIR /var/www/ |