(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:
Add the following chunk to your existing ISC dhcpd.conf file.
if exists user-class and ( option user-class = "iPXE" ) {
filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
filename "undionly.kpxe";
}
(or see https://gist.github.com/4008017 for a more elaborate setup
| # Credit http://stackoverflow.com/a/2514279 | |
| for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
| # Monitoring on interface eth0 | |
| tcpdump -i eth0 -n port 67 and port 68 |
| #!/usr/bin/env bash | |
| # bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-08-25 | |
| # | |
| # _______________| httpstatus : get HTTP status code | |
| # | |
| # Usage: httpstatus URL [timeout] [--code or --status] [see 4.] | |
| # ^message with code (default) | |
| # ^code (numeric only) | |
| # ^in secs (default: 3) | |
| # ^URL without "http://" prefix works fine. |
| from deployment.cuisine import * | |
| from fabric.api import * | |
| from fabric.context_managers import * | |
| from fabric.utils import puts | |
| from fabric.colors import red, green | |
| import simplejson | |
| import os |
| knife node configure my_node.example.com |
| import yaml | |
| import yaml.constructor | |
| try: | |
| # included in standard lib from Python 2.7 | |
| from collections import OrderedDict | |
| except ImportError: | |
| # try importing the backported drop-in replacement | |
| # it's available on PyPI | |
| from ordereddict import OrderedDict |