Skip to content

Instantly share code, notes, and snippets.

View indexzero's full-sized avatar
🌎
Always bet on Open Source

Charlie Robbins indexzero

🌎
Always bet on Open Source
View GitHub Profile
var User = resourcer.define('User', function () {
});
User.get('some-user', function (err, obj) {
obj.dont_update_me = 'foo';
User.update('some-user', { update_this_instead: true }, function () {
//
@indexzero
indexzero / git-commit-prefixes
Created April 20, 2011 22:09
Short list of Git commit prefixes used at Nodejitsu
[api]: New apis / changes to apis
[test]: Update test/* files
[dist]: Changes to submodules, version bumps, updates to package.json
[minor]: Small changes
[doc]: Updates to documentation
[ux]: Updates to UX
[fix]: Bug fixes
[bin]: Update binary scripts associated with the project
[merge]: Resolved git merge from upstream or otherwise
[refactor]: Refactor of existing code with no external API changes
@indexzero
indexzero / preview-output
Created April 25, 2011 03:24
require-analyzer
$ require-analyzer --update
info: require-analyzer starting in /Users/Charlie/GitHub/forever
warn: No dependencies found
info: Analyzing dependencies...
info: Done analyzing raw dependencies
info: Retrieved packages from npm
info: Additional dependencies found
data: {
data: daemon: '>= 0.3.0',
data: nconf: '>= 0.1.7',
@indexzero
indexzero / conditional-url-forwarding.js
Created April 27, 2011 21:43
Conditional URL rewrite forwarding
var http = require('http'),
httpProxy = require('http-proxy');
//
// Create a new instance of HttProxy to use in your server
//
var proxy = new httpProxy.HttpProxy();
var apacheUrls = [
/some\/url\/as\/a\/regexp/,
@indexzero
indexzero / jsconf2011-talks.txt
Created May 6, 2011 02:06 — forked from mattpodwysocki/jsconf2011-talks.txt
JSConf talks and resources
Track A
Bytes and Blobs – David Flanagan @__DavidFlanagan
Slides: http://davidflanagan.com/Talks/jsconf11/BytesAndBlobs.html
Conference Wifi Redux - Malte Ubi @cramforce
Sashimi: https://github.com/cramforce/Sashimi
Slides: http://social-traffic.streamie.org/preso/static/#slide1
Run Your JS everywhere with Jellyfish – Adam Christian @admc
@indexzero
indexzero / nodeconf_2011.md
Created May 6, 2011 23:14 — forked from guybrush/nodeconf_2011.md
a list of slides from nodeconf 2011
@indexzero
indexzero / npm-install-fail.out
Created May 14, 2011 04:45
Failed attempt by npm to install require-analyzer
$ sudo npm install require-analyzer -g
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info addNamed [ 'require-analyzer', '' ]
npm info fetch http://registry.npmjs.org/require-analyzer/-/require-analyzer-0.1.4.tgz
npm info shasum eba958f548db6a3bc5e06351bdca308c0da9653a
npm info shasum /tmp/npm-1305347953854/1305347953854-0.9087109575048089/tmp.tgz
npm info shasum a5b9f6713415722b052a7b833d3364bced300f7d
npm info shasum /Users/Charlie/.npm/require-analyzer/0.1.4/package.tgz
@indexzero
indexzero / npm-link-fail.out
Created May 14, 2011 06:00
Failed attempt by npm to link docco
@indexzero
indexzero / forever.help
Created May 15, 2011 05:48
Sample of the output from CLI programs I wrote in node.js
usage: forever [action] [options] SCRIPT [script-options]
Monitors the script specified in the current process or as a daemon
actions:
start Start SCRIPT as a daemon
stop Stop the daemon SCRIPT
stopall Stop all running forever scripts
restart Restart the daemon SCRIPT
list List all running forever scripts
@indexzero
indexzero / loggly-winston.js
Created May 16, 2011 03:51
Using node-loggly and winston together
var winston = require('winston'),
loggly = require('loggly');
var client = loggly.createClient({
subdomain: "your-subdomain",
auth: {
username: "your-username",
password: "your-password"
}
});