Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.
[Brief description ]
- [more description]
- [more description]
- [more description]
| """ | |
| Usage example: | |
| from logger import get_logger | |
| log = get_logger() | |
| log.info('my_event', my_key1='val 1', my_key2=5, my_key3=[1, 2, 3], my_key4={'a': 1, 'b': 2}) | |
| List of metadata keys in each log message: | |
| event | |
| _func |
| #!/usr/bin/env python | |
| ''' | |
| Send memory usage metrics to Amazon CloudWatch | |
| This is intended to run on an Amazon EC2 instance and requires an IAM | |
| role allowing to write CloudWatch metrics. Alternatively, you can create | |
| a boto credentials file and rely on it instead. | |
| Original idea based on https://github.com/colinbjohnson/aws-missing-tools |
| #!/bin/bash | |
| # | |
| # (1) copy to: ~/bin/ssh-host-color | |
| # (2) set: alias ssh=~/bin/ssh-host-color | |
| # | |
| # Inspired from http://talkfast.org/2011/01/10/ssh-host-color | |
| # Fork from https://gist.github.com/773849 | |
| # | |
| set_term_bgcolor(){ |