Skip to content

Instantly share code, notes, and snippets.

View runvnc's full-sized avatar

Jason Livesay runvnc

View GitHub Profile
@runvnc
runvnc / nodejstrademarkcrap
Created November 16, 2011 00:49
node.js hosting service, node.js logo
node.js hosting service, node.js logo
Inbox
x
Jason Livesay
Nov 13 (2 days ago)
to trademark
Hello.. I am working on building a Node.JS hosting service..further down the road, the ambition is to create a component-based platform to compete with WordPress. First step is the hosting-type infrastructure. I don't see a good way to advertise this service without showing the actual Node.JS logo on my home page.
@runvnc
runvnc / gist:1381968
Created November 21, 2011 07:54
Now I can't configure node.js build
curenode ./configure g(a4402f)
inside of dir calling waf
/home/cure/node
/home/cure/node
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module '/home/cure/node/python'
at Function._resolveFilename (module.js:334:11)
@runvnc
runvnc / gist:1450223
Created December 9, 2011 04:48
createserver
var util = require('util');
var http = require('http');
var mongo = require('mongoskin');
var db = mongo.db('localhost:27017/app');
var nodemailer = require('nodemailer');
nodemailer.SMTP = { host: 'localhost' };
var cloudservers = require('cloudservers');
var config = {
@runvnc
runvnc / connectwithdarnit.js
Created January 31, 2012 08:42
connectWith not working?
$(function(){
storiespos = window.location.href.indexOf('stories');
if (storiespos < 0) return;
//The router runs whenever the URL changes.
//Either the user changes it or I call navigate()
//For now I am using hash tags but this also works with regular URLs
//without the # now in HTML 5
var AppRouter = Backbone.Router.extend({
initialize: function() {
@runvnc
runvnc / stories.html
Created January 31, 2012 08:49
stories no connectWith?
<div id="stories">
<ul id="status-columns">
<li id="raw-stories"></li>
<li id="groomed-stories"></li>
<li id="inprogress-stories"></li>
<li id="completed-stories"></li>
</ul>
</div> <!-- stories -->
<script type="text/template" id="status-column">
2012-04-05 18:12:28
Full thread dump OpenJDK 64-Bit Server VM (19.0-b09 mixed mode):
"Attach Listener" daemon prio=10 tid=0x0000000002e1a800 nid=0x19ff waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Attach Listener" daemon prio=10 tid=0x0000000002519000 nid=0x19fe runnable [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"1610952854@qtp-3981922-153" prio=10 tid=0x00007f29ee0f3800 nid=0x19fd in Object.wait() [0x00007f29f01bc000]
@runvnc
runvnc / oicplugins.txt
Created May 1, 2012 08:06
oicplugins
Plugin data attached as comments.
OIC plugins in comments.
@runvnc
runvnc / wizard.coffee
Created May 28, 2012 08:16
wizard in coffeescript
wizardForm =
title: 'Submit Your Timecard'
help: 'To submit your timecard for your supervisor to approve, simply follow the steps below'
steps: [
'Step 1':
type: 'choice'
question: 'Where would you like to pick up your check, if you dont want it mailed?'
items: [
'Hold my check in blah'
'Hold my check in bleh'
@runvnc
runvnc / gist:3469836
Created August 25, 2012 19:30
connect to tcp socket in node.js
socket = net.createConnection port, host
socket.on "data", (data) ->
console.log "RESPONSE: " + data
socket.on "connect", ->
socket.write "GET / HTTP/1.0\r\n\r\n"
socket.on "end", ->
console.log "DONE"