From https://github.com/GhostGroup/infrastructure/pull/180
Use socat to eavesdrop on the Nginx -> Unicorn socket-based comms.
ubuntu@ip-10-0-191-247:/etc/nginx/sites-enabled$ SOCK=/var/www/shared/.unicorn.sock [49/144]
sudo apt-get update | |
sudo apt-get install -y python-dev python-virtualenv virtualenvwrapper libffi-dev libssl-dev | |
source /etc/bash_completion.d/virtualenvwrapper | |
mkvirtualenv foo | |
pip install --upgrade pyopenssl ndg-httpsclient pyasn1 urllib3[secure] | |
pip install --upgrade pip |
From https://github.com/GhostGroup/infrastructure/pull/180
Use socat to eavesdrop on the Nginx -> Unicorn socket-based comms.
ubuntu@ip-10-0-191-247:/etc/nginx/sites-enabled$ SOCK=/var/www/shared/.unicorn.sock [49/144]
https://github.com/p/redis-dump-load
sudo apt-get install python-virtualenv virtualenvwrapper libffi-dev libssl-dev
source /etc/bash_completion.d/virtualenvwrapper
mkvirtualenv redisdump
pip install --upgrade pip
pip install -U pyopenssl ndg-httpsclient pyasn1 urllib3[secure]
pip install redis redis-dump-load
# | |
# Create patch from SHA | |
# http://stackoverflow.com/questions/6658313/generate-a-git-patch-for-a-specific-commit | |
# --stdout option is available, too | |
git format-patch -1 <sha> | |
# | |
# Apply Patch | |
# https://ariejan.net/2009/10/26/how-to-create-and-apply-a-patch-with-git/ |
#!/usr/bin/env gawk | |
# | |
# Transform ELB access log to Apache/Nginx combined access log format - useful for replaying ELB logs with JMeter | |
# | |
BEGIN { | |
} | |
# ---- | |
{ | |
# 2016-04-20T15:05:39.777359Z elb_name 18.187.30.86:47983 10.0.11.143:80 0.000023 0.375377 0.000026 200 200 0 8853 "GET https://host.example.com:443/v1.1/listings?bounds[top_left][latitude]=34.055969&bounds[top_left][longitude]=-118.041738&bounds[bottom_right][latitude]=33.937845&bounds[bottom_right][longitude]=-117.918142&types=funstuff&limit=200 HTTP/1.1" "Dalvik/2.1.0 (Linux; U; Android 5.1; HTC Desire 626s Build/LMY47O)" ECDHE-RSA-AES128-GCM-SHA256 TLSv1.2 |
#!/bin/bash | |
# https://www.openssl.org/news/secadv/20160503.txt | |
# CVE-2016-2108 | |
# http://www.ubuntu.com/usn/usn-2959-1/ | |
ansible 'tag_environment_staging' -mapt -a 'name=openssl state=latest update_cache=yes' --become |
#!/usr/bin/env python | |
# | |
# Simplistic RDS logfile downloader because AWS CLI + Botocore is broken. :-( | |
# | |
from __future__ import print_function | |
import argparse | |
import os.path | |
import sys |
#!/usr/bin/env python | |
# | |
# Simplistic RDS logfile downloader because AWS CLI + Botocore is broken. :-( | |
# | |
from __future__ import print_function | |
import argparse | |
import os.path | |
import sys |
--- | |
ec2_facts_vpc_network_prefix: "172." | |
# derived facts | |
ansible_ec2_in_vpc: no |