Skip to content

Instantly share code, notes, and snippets.

View japj's full-sized avatar

Jeroen Janssen japj

View GitHub Profile
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install
curl http://npmjs.org/install.sh | sh
@guybrush
guybrush / nodeconf_2011.md
Created May 6, 2011 07:22
a list of slides from nodeconf 2011
@piscisaureus
piscisaureus / awesome.txt
Created May 18, 2011 02:22
Stuff I want to use
* Waterbear (https://github.com/dethe/waterbear)
Visual programming language toolkit written in javascript.
Need it for my simulation tool project. Also really a novelty in js-land.
* Forge (https://github.com/digitalbazaar/forge)
A javascript implementation of TLS - pretty rad. If this works well I'll never
touch OpenSSL again. But it needs to be put to the test first.
* TermKit (https://github.com/unconed/TermKit)
Finally some sensible innovation in terminal-land. Terminals are incredibly
@japj
japj / custommain.js
Created July 16, 2011 20:00 — forked from creationix/custommain.js
A proposed hook into node.js to make deploying node based applications easy and not require re-compiles.
startup.customRuntimeMain = function () {
var path = NativeModule.require('path');
var custom = path.resolve(process.cwd(), process.argv[0] + ".js");
if (!path.existsSync(custom)) return;
process.argv[1] = custom;
};
var follow = require("follow")
var seen = {}
follow({ db: "http://isaacs.ic.ht/registry"
, since: 20267
, include_docs: true }, function (er, update) {
if (er) throw er
var doc = update.doc
@thejh
thejh / bot.coffee
Created August 14, 2011 21:38
My IRC bot, jhbot
coffee = require 'coffee-script'
https = require 'https'
npm = require 'npm'
Irc = require 'irc-js'
cradle = require 'cradle'
{GitHubApi} = require 'github'
request = require 'request'
gitHubApi = new GitHubApi()
githubIssueApi = gitHubApi.getIssueApi()
githubObjectApi = gitHubApi.getObjectApi()
@mattpodwysocki
mattpodwysocki / jsconf-eu-2011.md
Created October 1, 2011 13:40
JSConf.EU Slides
#include <v8.h>
#include <node.h>
#include <unistd.h>
#include <string.h>
#include <glob.h>
#include "audiolib.h"
using namespace v8;
using namespace node;
@GoEddie
GoEddie / targetSqlVersion.cs
Created May 4, 2017 20:42
If you have an SSDT project in visual studio and want to get the version of sql it is targetting because everything is internal :( do this!
string GetTargetSqlServerVersion(){
var dte = (DTE)GetService(typeof(DTE));
var project = dte.ActiveDocument.ProjectItem.ContainingProject;
return project.GetType().GetProperty("Globals").GetValue(project).GetType().GetProperty("Parent").GetValue(project.GetType().GetProperty("Globals").GetValue(project)).GetType().GetProperty("DatabaseSchemaProvider").GetValue(project.GetType().GetProperty("Globals").GetValue(project).GetType().GetProperty("Parent").GetValue(project.GetType().GetProperty("Globals").GetValue(project))).GetType().GetProperty("Platform").GetValue(project.GetType().GetProperty("Globals").GetValue(project).GetType().GetProperty("Parent").GetValue(project.GetType().GetProperty("Globals").GetValue(project)).GetType().GetProperty("DatabaseSchemaProvider").GetValue(project.GetType().GetProperty("Globals").GetValue(project).GetType().GetProperty("Parent").GetValue(project.GetType().GetProperty("Globals").GetValue(project))))
}