Mozilla Operations Security (OpSec) team:
- Cipher suite: Modern compatibility
- General server config: Nginx
Mozilla Operations Security (OpSec) team:
| import logging; logging.basicConfig(level=logging.DEBUG) |
| { | |
| "color_scheme": "Packages/User/Text Ex Machina bsik.tmTheme", | |
| "translate_tabs_to_spaces": true, | |
| "auto_complete_triggers": [{"selector": "source.python - string - comment - constant.numeric", "characters": "."}], | |
| "complete_parameters": true, | |
| "pep8_ignore": ["E501"] | |
| } |
| { | |
| "always_show_minimap_viewport": true, | |
| "auto_complete_commit_on_tab": true, | |
| "bold_folder_labels": true, | |
| "caret_extra_bottom": 1, | |
| "caret_extra_top": 1, | |
| "caret_style": "solid", | |
| "color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
| "create_window_at_startup": false, | |
| "ensure_newline_at_eof_on_save": true, |
| # encoding: utf-8 | |
| import sys | |
| import monocle | |
| monocle.init("twisted") | |
| from monocle import _o | |
| from monocle.stack import eventloop | |
| import txredis.client | |
| from twisted.internet import reactor, protocol |
| x='http://letsrevolutionizetesting.com/challenge'; while :; do r=`curl -s -H "Accept: application/json" $x`; x=`echo $r | grep -E -o 'http[^"]+'`; if ! echo "$x" | grep -q http; then echo $r; break; fi; echo $x; done |
| import os | |
| import subprocess | |
| import shlex | |
| def bail_if_another_is_running(): | |
| cmd = shlex.split("pgrep -u {} -f {}".format(os.getuid(), __file__)) | |
| pids = subprocess.check_output(cmd).strip().split('\n') | |
| if len(pids) > 1: | |
| pids.remove("{}".format(os.getpid())) |
| import logging | |
| from termcolor import colored | |
| class ColorLog(object): | |
| colormap = dict( | |
| debug=dict(color='grey', attrs=['bold']), | |
| info=dict(color='white'), | |
| warn=dict(color='yellow', attrs=['bold']), |
| # create a temporary directory | |
| mkdir tmp_python; cd tmp_python | |
| # symlink "python" to the interpreter you want | |
| ln -s `which python2.6` python | |
| # have mkvirtualenv use the python symlink | |
| PATH="$PWD:$PATH" mkvirtualenv py26party | |
| # clean up | |
| cd ..; rm -rf tmp_python |
| # encoding: utf-8 | |
| class DotDict(dict): | |
| def __init__(self, *a, **kw): | |
| dict.__init__(self, *a, **kw) | |
| for key in self: | |
| self._validate_key(key) | |
| def _validate_key(self, key): |