http://wiki.nginx.org/HttpLuaModule#Installation
install LuaJIT
$ brew install luajit
download ngx_devel_kit
| David Heinemeier | |
| Gihub: | |
| • 14 repos related to Ruby | |
| • multiple comments in rails/rails | |
| RubyGem | |
| • 23 Gems | |
| • 227,964,383 downloads | |
| Vimeo | |
| • Uploaded RubyConf video | |
| 37Signals |
http://wiki.nginx.org/HttpLuaModule#Installation
install LuaJIT
$ brew install luajit
download ngx_devel_kit
| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| const Delta = 0.0001 | |
| func isConverged(d float64) bool { |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| location ^~ /attachments/download_zip/ { | |
| proxy_pass http://mongrel; | |
| proxy_redirect off; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header X_Forwarded_Proto $scheme; | |
| proxy_read_timeout 120; | |
| proxy_connect_timeout 120; | |
| post_action @notify_zip |