$ cat /etc/apache2/sites-enabled/mms-test
Listen 50690
LogLevel debug
DumpIOInput On
# DumpIOOutput On
$ sudo tail -f /var/log/apache2/error.log | grep "mod_dumpio.c(74)" | sed "s/.*HEAP.: //"
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| <!--[if mso]> | |
| <center> | |
| <table><tr><td width="580"> | |
| <![endif]--> | |
| <div style="max-width:580px; margin:0 auto;"> | |
| <p>This text will be centered and constrained to 580 pixels even on Outlook which does not support max-width CSS</p> | |
| </div> | |
| <!--[if mso]> |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/usr/bin/ruby | |
| # Create display override file to force Mac OS X to use RGB mode for Display | |
| # see http://embdev.net/topic/284710 | |
| require 'base64' | |
| data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
| edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
| vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
NGINX does weird things with If statements: http://wiki.nginx.org/IfIsEvil
It turns out, "if" inside a location directive w/ proxy_pass disables that implied URL-rewriting function. So, for example:
location /some/url/ {
proxy_pass http://backend/api/;
# example client url: http://server/some/url/data
# URL sent to proxy: http://backend/api/data
}
| user web; | |
| # One worker process per CPU core. | |
| worker_processes 8; | |
| # Also set | |
| # /etc/security/limits.conf | |
| # web soft nofile 65535 | |
| # web hard nofile 65535 | |
| # /etc/default/nginx |
Template that will create the following:
REGIONAL endpoint.POST requests only, with Lambda proxy integration to a target function.