This file contains hidden or 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
| location ~* ^(/v1/events/.*) { | |
| add_header Cache-Control "no-cache"; | |
| expires 0s; | |
| } | |
| location ~ \.(php|hh)$ { | |
| try_files $uri =404; | |
| # fastcgi_pass unix:/var/run/hhvm/sock; | |
| fastcgi_pass unix:/var/run/php5-fpm.sock; | |
| fastcgi_split_path_info ^(.+.php)(/.+)$; |
This file contains hidden or 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
| location ~ \.(php|hh)$ { | |
| if ($request_uri ~* ^.*/v1(/events/.*|/favorites.*|)$) { | |
| add_header Cache-Control "no-cache"; | |
| expires 0s; | |
| } |
This file contains hidden or 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
| map[2test:[116 101 115 116 105 110 103] 1test:[116 101 115 116 105 110 103] test:12345 smog:true] |
This file contains hidden or 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
| //program startup | |
| routerList *storage.RouterList | |
| r.routerList.Conn, err = leveldb.Open("level", nil) | |
| if err != nil { | |
| log.Fatal(err) | |
| } | |
| type RouterList struct { | |
| Records []Router |
This file contains hidden or 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
| func Intialize()(d *RouterList) { | |
| d = &RouterList{ | |
| records: []Router, | |
| } | |
| return | |
| } |
This file contains hidden or 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
| ╰─$ go get | |
| # cd .; hg clone -U https://code.google.com/p/log4go /Users/densone/go/src/code.google.com/p/log4go | |
| warning: code.google.com certificate with fingerprint fe:8e:52:80:8e:59:8a:14:5c:48:1c:ba:39:32:a2:ef:31:5f:33:14 not verified (check hostfingerprints or web.cacerts config setting) | |
| abort: HTTP Error 404: Not Found | |
| package code.google.com/p/log4go: exit status 255 |
This file contains hidden or 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
| vm.dirty_bytes = 209715200 | |
| vm.dirty_background_bytes = 104857600 | |
| vm.swappiness = 0 | |
This file contains hidden or 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
| <?xml version="1.0"?> | |
| <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | |
| <service_bundle type="manifest" name="haproxy"> | |
| <service name="pkgsrc/haproxy" type="service" version="1"> | |
| <create_default_instance enabled="false" /> | |
| <single_instance /> | |
| <dependency name="network" grouping="require_all" restart_on="error" type="service"> | |
| <service_fmri value="svc:/milestone/network:default" /> | |
| </dependency> | |
| <dependency name="filesystem" grouping="require_all" restart_on="error" type="service"> |
This file contains hidden or 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
| [root@b1538a7b-249e-4fee-bc14-264a283f4490 ~/haproxy/haproxy-1.5-dev17]# CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib -R/opt/local/lib" gmake TARGET=solaris USE_OPENSSL=1 | |
| gcc -Iinclude -Iebtree -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -DFD_SETSIZE=65536 -D_REENTRANT -DTPROXY -DCONFIG_HAP_CRYPT -DNEED_CRYPT_H -DUSE_GETADDRINFO -DENABLE_POLL -DUSE_OPENSSL -DCONFIG_HAPROXY_VERSION=\"1.5-dev17\" -DCONFIG_HAPROXY_DATE=\"2012/12/28\" \ | |
| -DBUILD_TARGET='"solaris"' \ | |
| -DBUILD_ARCH='""' \ | |
| -DBUILD_CPU='"generic"' \ | |
| -DBUILD_CC='"gcc"' \ | |
| -DBUILD_CFLAGS='"-O2 -g -fno-strict-aliasing -fomit-frame-pointer -DFD_SETSIZE=65536 -D_REENTRANT"' \ | |
| -DBUILD_OPTIONS='"USE_OPENSSL=1"' \ | |
| -c -o src/haproxy.o src/haproxy.c | |
| In file included from include/types/acl.h:33:0, |
This file contains hidden or 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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDkEY0IBMeiz2NNk19N3U+UVjEqdKcSRCFGNi9OuTUjR5DKDlgjQILDq469B4SWljOVW1ozyfMN/eLmVIbkKwYG35IWbe7llxS4KdjVHrGXwRJqbeinBZ1UCexsXwSrch6VQd6GbPz2Z0BMJZO9Mnz+iPCbyRe957/rRwDcqw5RqiICzJflMAmHcl+WuITDeKF2obK0cyNghJxztW9JMsEwz40zZMnJq72s9ORUmNzLrvgQ0KuCVBWcP/AZRXQiyBXewgpSASK4gwua8FA5kO+FHzVcV6SC9UwITGf8T68IaSI6PjL4fPLJyYdWioPPJrAo7uC30791Gc69uj7Se5d [email protected] |
NewerOlder