Skip to content

Instantly share code, notes, and snippets.

`secret` option required for sessions
Error: `secret` option required for sessions
at session (/home/graeme/textshots/node_modules/express-session/index.js:157:23)
at Layer.handle [as handle_request] (/home/graeme/textshots/node_modules/express/lib/router/layer.js:82:5)
at trim_prefix (/home/graeme/textshots/node_modules/express/lib/router/index.js:270:13)
at /home/graeme/textshots/node_modules/express/lib/router/index.js:237:9
at Function.proto.process_params (/home/graeme/textshots/node_modules/express/lib/router/index.js:312:12)
at /home/graeme/textshots/node_modules/express/lib/router/index.js:228:12
at Function.match_layer (/home/graeme/textshots/node_modules/express/lib/router/index.js:295:3)
var Constants = {
Cookie_Secret: process.env.COOKIE_SECRET,
// Key and secret used to connect to twitter app, can't be shared
Twitter: {
KEY: '*********************',//process.env.TWITTER_KEY,
SECRET: '*********************'//process.env.TWITTER_SECRET,
//CALLBACK: '*********************'//process.env.TWITTER_CALLBACK,
},
Imgur: {
ID: '*********************',//process.env.IMGUR_ID,
graeme@amy:~/textshots$ DEBUG=* node bin/www
express:router:route new / +0ms
express:router:layer new / +3ms
express:router:route get / +0ms
express:router:layer new / +0ms
express:router:route new /login +1ms
express:router:layer new /login +0ms
express:router:route get /login +0ms
express:router:layer new / +0ms
express:router:route new undefined +0ms
sudo fig up
[sudo] password for graeme:
Couldn't connect to Docker daemon at http+unix://var/run/docker.sock - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
graeme@amy:~/textshots$ fig up
Recreating textshots_mongodb_1...
Recreating textshots_grunt_1...
Recreating textshots_redis_1...
Creating textshots_web_1...
Couldn't connect to Docker daemon at http+unix://var/run/docker.sock - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
graeme@amy:~/textshots$ fig up
Couldn't connect to Docker daemon at http+unix://var/run/docker.sock - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
root@1ac41ea069be:/# bash: path: No such file or directory
@infoburp
infoburp / index.html
Last active August 29, 2015 14:07 — forked from steren/index.html
<div id="insertTest"></div>
<script>
var wikipediaHTMLResult = function(data) {
var readData = $('<div>' + data.parse.text.* + '</div>');
// handle redirects
var redirect = readData.find('li:contains("REDIRECT") a').text();
if(redirect != '') {
callWikipediaAPI(redirect);
@infoburp
infoburp / wmiirc
Last active August 29, 2015 14:06 — forked from benkaiser/wmiirc
#!/bin/dash -f
# Configure wmii
wmiiscript=wmiirc # For wmii.sh
. wmii.sh
# Configuration Variables
MODKEY=Mod4
UP=k
DOWN=j
@infoburp
infoburp / README.md
Last active August 29, 2015 14:06 — forked from knutwalker/README.md

Installation

  • requires python 2.7 (maybe python 3.3+ will work too, didn't tested it)

Put git2neo.py somewhere in your $PATH and chmod +x it.

Usage

# setup environment for local install:
export WLD=$HOME/install
export LD_LIBRARY_PATH=$WLD/lib
export PKG_CONFIG_PATH=$WLD/lib/pkgconfig/:$WLD/share/pkgconfig/
export PATH=$WLD/bin:$PATH
export ACLOCAL_PATH=$WLD/share/aclocal
export ACLOCAL="aclocal -I $ACLOCAL_PATH"
mkdir -p $ACLOCAL_PATH
@infoburp
infoburp / .gitconfig
Created October 1, 2012 02:07 — forked from textarcana/git-log2json.sh
git log JSON format > d3? HTML5GOURCE?
[alias]
log-json = log --pretty=format:'\"%h\": {%n \"commit\": \"%H\",%n \"author\": \"%an <%ae>\",%n \"date\": \"%ad\",%n \"message\": \"%s\"%n}'