Skip to content

Instantly share code, notes, and snippets.

This is gist.
There are many like it, but this one is mine.
It is my life.
I must master it as I must master my life.
Without me gist is useless.
Without gist, I am useless.
@randwa1k
randwa1k / index.js
Created July 31, 2014 05:10
myApp/node_modules/dependable/index.js
// Generated by CoffeeScript 1.3.3
(function() {
var existsSync, fs, path, _ref;
path = require('path');
fs = require('fs');
existsSync = (_ref = fs.existsSync) != null ? _ref : path.existsSync;
@randwa1k
randwa1k / 20140309 heroku logs
Created March 9, 2014 06:33
heroku logs for heroku open error
$ heroku logs
2014-03-09T05:12:46.651421+00:00 heroku[api]: Enable Logplex by myemailaddr@gmail.com
2014-03-09T05:12:46.651502+00:00 heroku[api]: Release v2 created by myemailaddr@gmail.com
2014-03-09T05:12:49.763280+00:00 heroku[api]: Release v3 created by myemailaddr@gmail.com
2014-03-09T05:12:49.763280+00:00 heroku[api]: Add NODE_ENV config by myemailaddr@gmail.com
2014-03-09T05:54:03+00:00 heroku[slug-compiler]: Slug compilation started
2014-03-09T05:54:28+00:00 heroku[slug-compiler]: Slug compilation finished
2014-03-09T05:54:30.776477+00:00 heroku[web.1]: Starting process with command `node server.js`
2014-03-09T05:54:31.031157+00:00 heroku[web.1]: Starting process with command `node server.js`
2014-03-09T05:54:32.078307+00:00 app[web.1]: Express server listening on port 19273 in production mode
@randwa1k
randwa1k / writer.js for ENOENT debug
Created February 25, 2014 15:21
/home/ubuntu/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js
245 // XXX This function is beastly. Break it up!
246 Writer.prototype._finish = function () {
247 var me = this
248
249 // console.error(" W Finish", me._path, me.size)
250
251 // set up all the things.
252 // At this point, we're already done writing whatever we've gotta write,
253 // adding files to the dir, etc.
254 var todo = 0
@randwa1k
randwa1k / gist:9210472
Created February 25, 2014 15:00
2014-02-25 ENOENT 3
npm http 200 https://registry.npmjs.org/connect/-/connect-2.7.11.tgz
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/lodash
npm http 200 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/debug/-/debug-0.7.4.tgz
npm http GET https://registry.npmjs.org/lodash/-/lodash-1.0.1.tgz
npm http GET https://registry.npmjs.org/jshint
npm http 200 https://registry.npmjs.org/debug/-/debug-0.7.4.tgz
npm http 200 https://registry.npmjs.org/lodash/-/lodash-1.0.1.tgz
from stderr.log:
npm http 304 https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/graceful-fs
below are all the essential commands that I ran on a brand new Ubuntu Server 12.04.3, so you can see exactly what led up to the ENOENT ERR, and where I have installed various packages.
#
echo prefix = ~/local >> ~/.npmrc
mkdir local
curl -O https://www.npmjs.org/install.sh
sudo sh install.sh
some background for [my stackoverflow question on enoent err](http://stackoverflow.com/q/21964874/3290121)
below are all the essential commands that I ran on a brand new Ubuntu Server 12.04.3, so you can see exactly what led up to the ENOENT ERR, and where I have installed various packages.
#
echo prefix = ~/local >> ~/.npmrc
mkdir local
curl -O https://www.npmjs.org/install.sh
# install node wherever.
# use sudo even, it doesn't matter
# we're telling npm to install in a different place.
#for youtube_12
echo prefix = ~/local >> ~/.npmrc
# curl https://npmjs.org/install.sh | sh
# use this below instead to avoid install.sh newline error
curl -O https://www.npmjs.org/install.sh
// Generated on 2014-02-18 using generator-angular 0.7.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {