DARPA-RA-11-52 Cyber Fast Track
- Principal Investigators:
| import simplejson as json | |
| import collections | |
| import sys | |
| import random | |
| import string | |
| import copy | |
| def getRandEntitlements(region): | |
| entitlements = collections.OrderedDict() | |
| entitlements['enabled'] = '1' |
| ######################## | |
| # sails | |
| ######################## | |
| .sails | |
| .waterline | |
| .rigging | |
| .tmp | |
| ######################## |
httpOnly (and secure to true if running over SSL) when setting cookies.csrf for preventing Cross-Site Request Forgery: http://expressjs.com/api.html#csrfbodyParser() and only use multipart explicitly. To avoid multiparts vulnerability to 'temp file' bloat, use the defer property and pipe() the multipart upload stream to the intended destination.After reading Code Climate's Rails' Insecure Defaults I realized I was guilty of breaking rule 3. Versioned Secret Tokens. Here's how I fixed it.
Use dotenv in development and test environments:
# Gemfile
gem 'dotenv-rails', groups: [:development, :test]Setting up p4merge
as diff and merge tool on Windows. Tried for Git version 1.8.4.msysgit.0.
Two alternatives are explained: using the command line, and directly editing the config file.
Being the installation path "C:Program Files\Perforce\p4merge.exe", just run:
$ git config --global diff.tool p4merge