Skip to content

Instantly share code, notes, and snippets.

{
"commit" : "http://localhost:7474/db/data/transaction/6/commit",
"results" : [ {
"columns" : [ "n" ],
"data" : [ {
"row" : [ {
"name" : "My Node"
} ]
} ]
} ],
@jmcvetta
jmcvetta / gist:3740891
Created September 18, 2012 02:16
Liquid Feedback on Ubuntu 11.10

Liquid Feedback on Ubuntu 11.10

Core

  • Edit Makefile. In lf_update section, move -lpq to be the last argument.

Webmcp

  • Edit Makefile.options. In the CFLAGS section, replace -I /usr/include -I /usr/local/include with -I/usr/include/lua5.1 -fno-stack-protector
  • Copy framework.precompiled, not framework, to /opt/webmcp else you will get a missing library error.
@jmcvetta
jmcvetta / django_2012.md
Created July 2, 2012 03:15 — forked from trey/django_2012.md
How to start a Django project in 2012

How to start a Django project in 2012

Develop on Ubuntu; Source on Github; Deploy to Heroku


Install system packages

You may already have (some of) these installed. It is best not to install Django system-wide, to avoid confusion with the Django instance that will be installed inside your virtual environment below.

@jmcvetta
jmcvetta / gist:2939056
Created June 15, 2012 22:42
HTTP 451 support in Golang
diff --git a/src/pkg/net/http/status.go b/src/pkg/net/http/status.go
--- a/src/pkg/net/http/status.go
+++ b/src/pkg/net/http/status.go
@@ -44,6 +44,7 @@
StatusRequestedRangeNotSatisfiable = 416
StatusExpectationFailed = 417
StatusTeapot = 418
+ StatusCensored = 451
StatusInternalServerError = 500
@jmcvetta
jmcvetta / Makefile
Created March 24, 2012 04:15
Go WebSocket Example
run: clean example
./example
include $(GOROOT)/src/Make.inc
TARG=example
GOFILES=\
main.go\
hub.go\
conn.go