Skip to content

Instantly share code, notes, and snippets.

@stunti
stunti / graphql-go-mongodb-example.go
Last active January 25, 2019 02:29 — forked from aquiseb/graphql-go-mongodb-example.go
Minimal example of GraphQL Golang and MongoDB playing nicely together. Edit
// Embedded in this article https://medium.com/p/c98e491015b6
package main
import (
"context"
"fmt"
"log"
"net/http"
"time"
@stunti
stunti / gist:1145681
Created August 15, 2011 03:50
nginx.conf
server {
listen 9090;
server_name cache.beta2.asiaclassified.com;
root /var/www/current/public;
set $rooty /var/www/currentpublic;
large_client_header_buffers 4 16k;
location /content {
@stunti
stunti / gist:1141752
Created August 12, 2011 09:10
Error log ngx.exec()
2011/08/12 17:49:17 [debug] 26292#0: *368 http fastcgi record length: 283
2011/08/12 17:49:17 [debug] 26292#0: *368 http fastcgi parser: 0
2011/08/12 17:49:17 [debug] 26292#0: *368 http fastcgi header: "Status: 302 Moved Temporarily"
2011/08/12 17:49:17 [debug] 26292#0: *368 http fastcgi parser: 0
2011/08/12 17:49:17 [debug] 26292#0: *368 http fastcgi header: "X-Powered-By: PHP/5.3.6"
2011/08/12 17:49:17 [debug] 26292#0: *368 http fastcgi parser: 0
2011/08/12 17:49:17 [debug] 26292#0: *368 http fastcgi header: "Expires: Thu, 19 Nov 1981 08:52:00 GMT"
2011/08/12 17:49:17 [debug] 26292#0: *368 http fastcgi parser: 0
2011/08/12 17:49:17 [debug] 26292#0: *368 http fastcgi header: "Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
2011/08/12 17:49:17 [debug] 26292#0: *368 http fastcgi parser: 0