Skip to content

Instantly share code, notes, and snippets.

View sreekumar-kr's full-sized avatar

Sreekumar Kr sreekumar-kr

  • Mashinga
  • Cochin, India.
View GitHub Profile
@sreekumar-kr
sreekumar-kr / everyauthReferenceError
Created August 6, 2012 20:20
everyauth is not defined
ReferenceError: /home/x/code/c/b/boilerplate/everyauth/example/views/home.jade:1
> 1| - if (!everyauth.loggedIn)
2| h2 Not Authenticated
3| #register
4| a(href='/register') Register
everyauth is not defined
at eval (eval at <anonymous> (/home/x/code/c/b/boilerplate/everyauth/node_modules/jade/lib/jade.js:176:8))
at exports.compile (/home/x/code/c/b/boilerplate/everyauth/node_modules/jade/lib/jade.js:181:12)
at Object.exports.render (/home/x/code/c/b/boilerplate/everyauth/node_modules/jade/lib/jade.js:216:14)
@sreekumar-kr
sreekumar-kr / realtime-http-server
Created July 30, 2012 06:54
nodejs realtime http server
var app = require('http').createServer(handler)
, io = require('socket.io').listen(app)
, fs = require('fs')
app.listen(80);
function handler (req, res) {
fs.readFile(__dirname + '/index.html',
function (err, data) {
if (err) {
@sreekumar-kr
sreekumar-kr / socket.js
Created July 27, 2012 20:54 — forked from slickplaid/socket.js
bored!
var visitors = 50;
var sockets = [];
(function($) {
$('body').append('<h1>Our Sockets: <span class="ourSockets">0</span></h1>');
socket.on('countChanged', autoVisit);
function autoVisit(data) {
@sreekumar-kr
sreekumar-kr / jitsu-deploy-error
Created July 27, 2012 12:34
Error running command deploy
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
warn: Error returned from Nodejitsu
error: Error: connect ECONNREFUSED
error: at errnoException (net.js:781:11)
error: at Object.afterConnect [as oncomplete] (net.js:772:19)
info: Nodejitsu not ok
@sreekumar-kr
sreekumar-kr / install-jitsu
Created July 27, 2012 10:51
sudo npm install jitsu -g error
npm ERR! error installing jitsu@0.9.5 Error: Unsupported
npm ERR! error installing jitsu@0.9.5 at checkEngine (/usr/local/lib/node_modules/npm/lib/install.js:493:14)
npm ERR! error installing jitsu@0.9.5 at Array.0 (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
npm ERR! error installing jitsu@0.9.5 at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:13)
npm ERR! error installing jitsu@0.9.5 at chain (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:20:4)
npm ERR! error installing jitsu@0.9.5 at installOne_ (/usr/local/lib/node_modules/npm/lib/install.js:470:3)
npm ERR! error installing jitsu@0.9.5 at installOne (/usr/local/lib/node_modules/npm/lib/install.js:411:3)
npm ERR! error installing jitsu@0.9.5 at /usr/local/lib/node_modules/npm/lib/install.js:347:9
npm ERR! error installing jitsu@0.9.5 at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:54:35
npm ERR! error installing jitsu@0.9.5