Skip to content

Instantly share code, notes, and snippets.

@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 / 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;
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.
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 # this steps takes many minutes
# curl https://npmjs.org/install.sh | sh
# use this below instead to avoid install.sh newline error
@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