start new:
tmux
start new with session name:
tmux new -s myname
| defutf8 on | |
| defencoding utf8 # set the internal encoding of a new screen window to utf8, i.e. "C-a c C-a u" | |
| cjkwidth on | |
| vbell off | |
| autodetach on | |
| startup_message off # Disable startup messages | |
| #shell -$SHELL | |
| shelltitle "" | |
| allpartial off # Refresh entire screen on window change | |
| altscreen on # erase screen when quit apps such as vim |
| # 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 |
| This playbook has been removed as it is now very outdated. |
| autodetach on | |
| crlf off | |
| startup_message off | |
| shell -zsh | |
| defmonitor on | |
| activity "<%n>" | |
| caption always "%{= dd}%{+b ky}%{+ .b} $LOGNAME@%H %{-} %{.y}%-w%50>%{+ Kg} %n %t %{-}%+w%<%{-}" | |
| # 256 color support | |
| attrcolor b ".I" |
| #!/usr/bin/python | |
| """ | |
| OVS Bridge with Spanning Tree Protocol | |
| Note: STP bridges don't start forwarding until | |
| after STP has converged, which can take a while! | |
| See below for a command to wait until STP is up. | |
| Example: |
| # Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source. | |
| # Will include all hosts the playbook is run on. | |
| # Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html | |
| - name: "Build hosts file" | |
| lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present | |
| when: hostvars[item].ansible_default_ipv4.address is defined | |
| with_items: groups['all'] |
| # Download and Install the Latest Updates for the OS | |
| apt-get update && apt-get upgrade -y | |
| # Set the Server Timezone to CST | |
| echo "America/Chicago" > /etc/timezone | |
| dpkg-reconfigure -f noninteractive tzdata | |
| # Enable Ubuntu Firewall and allow SSH & MySQL Ports | |
| ufw enable | |
| ufw allow 22 |