This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# aws s3 sync s3://logs.prod.lifesum.com/prod-alb/AWSLogs/198168715069/elasticloadbalancing/eu-west-1/2017/05/ aws_logs/ | |
def process_accesslogs(): | |
from django.conf import settings | |
url_config = __import__(settings.ROOT_URLCONF, fromlist=['urlpatterns']) | |
host_config = __import__(settings.ROOT_HOSTCONF, fromlist=['host_patterns']) | |
patterns = url_config.urlpatterns | |
host_patterns = host_config.host_patterns | |
from django.conf import settings | |
from urlparse import urlparse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hoxy = require('hoxy'); | |
var util = require('util') | |
var proxy = new hoxy.Proxy({ | |
}); | |
proxy.intercept({ | |
phase:'request' | |
}, function(req, resp){ | |
console.log(req.fullUrl()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hoxy = require('hoxy'); | |
var util = require('util') | |
var proxy = new hoxy.Proxy({ | |
reverse:'http://157.157.91.18:80' | |
}); | |
proxy.intercept('request', function(req, resp){ | |
console.log(req.fullUrl()); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am arnaldur on github. | |
* I am arnaldur (https://keybase.io/arnaldur) on keybase. | |
* I have a public key whose fingerprint is 7459 712C CA72 F2FB FBB6 A227 91EE F21B 90D0 1B48 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import argparse | |
import os | |
import re | |
''' | |
A simple script to create lower-resolution Android drawables from higher-resolution ones. |