(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:
| # /etc/systemd/system/wakelock.service | |
| [Unit] | |
| Description=Lock the screen on resume from suspend | |
| Before=sleep.target suspend.target | |
| [Service] | |
| User=daveg | |
| Type=forking | |
| Environment=DISPLAY=:0 |
| function aws_config | |
| if not fgrep -q "[$argv]" ~/.aws/credentials | |
| echo "Please specify a valid profile." | |
| else | |
| set token_expired false | |
| if test $AWS_SESSION_EXPIRY | |
| set now (date +%s) | |
| # WARNING: this date command only works with GNU date |
| function aws_config | |
| if not fgrep -q "[$argv]" ~/.aws/credentials | |
| echo "Please specify a valid profile." | |
| else | |
| set -e AWS_ACCESS_KEY | |
| set -e AWS_SECRET_KEY | |
| set -g -x ATLAS_TOKEN (awk "/\[$argv\]/,/^\$/ { if (\$1 == \"atlas_token\") { print \$3 }}" ~/.aws/credentials) | |
| set account (awk "/\[$argv\]/,/^\$/ { if (\$1 == \"account_id\") { print \$3 }}" ~/.aws/credentials) | |
| set username (awk "/\[$argv\]/,/^\$/ { if (\$1 == \"username\") { print \$3 }}" ~/.aws/credentials) | |
| set mfarn "arn:aws:iam::$account:mfa/$username" |
| class ChefRunner < FPM::Cookery::Recipe | |
| GOPACKAGE = "github.com/mlafeldt/chef-runner" | |
| name "chef-runner" | |
| version "0.8.0" | |
| revision 1 | |
| source "https://#{GOPACKAGE}/archive/v#{version}.tar.gz" | |
| sha256 "a7de23f989f8353ecf838b551a8ceff09b83c8aeff2553b2c31d57615f8fcc53" | |
| description "The fastest way to run Chef cookbooks" |
| <!-- note that this requires the rabbitmq management plugin --> | |
| <!-- also requires collectd 5.1 with curl_json plugin support --> | |
| <Plugin curl_json> | |
| <URL "http://localhost:55672/api/overview"> | |
| Instance "rabbitmq_overview" | |
| User "guest" | |
| Password "guest" | |
| <Key "message_stats/publish"> | |
| Type "counter" | |
| </Key> |
| global | |
| log 127.0.0.1 local0 | |
| log 127.0.0.1 local1 notice | |
| maxconn 4096 | |
| user haproxy | |
| group haproxy | |
| daemon | |
| listen rabbitmq 0.0.0.0:5672 | |
| mode tcp |
| # pfreixes, 2012-07-27 | |
| # Add to /etc/bash_completion.d/supervisorctl | |
| _supervisor() | |
| { | |
| local cur prev opts base | |
| COMPREPLY=() | |
| cur="${COMP_WORDS[COMP_CWORD]}" | |
| prev="${COMP_WORDS[COMP_CWORD-1]}" |