I don’t mind coming to work ..

I don’t mind coming to work,
But this eight hour wait to go home is just bullshit.

Posted in Uncategorized | Leave a comment

Get list of all npm packages

This downloads a 25MB JSON file

wget -O npmall1.json https://registry.npmjs.org/-/all
//prettify.js
var npmObject = require('./npmall.json')
var keys = Object.keys(npmObject)

var fs = require('fs')

var file = fs.createWriteStream('./npmall_pretty.json');

var count =0;
keys.forEach( (k) => {
	if ( count++ % 1000 === 0 ) console.log( count );
	var s = JSON.stringify( npmObject[ k ] )
	file.write( s + '\n' )
} )
file.end();
node --max_old_space_size=2000000 prettify.js
Posted in Uncategorized | Leave a comment

This too shall pass

This too shall pass.
It may pass like a kidney stone.
But, it shall pass.

Posted in Uncategorized | Leave a comment

Enumerate npm modules installed version

for f in $( ls node_modules/ ); do 
    echo $f, $(grep -i '"version":' node_modules/$f/package.json)
done
Posted in Uncategorized | Leave a comment

On trying things …

Only one who wanders finds new paths.
~ Norwegian proverb

All that is gold does not glitter,
Not all those who wander are lost;
The old that is strong does not wither,
Deep roots are not reached by the frost.
– T.R.R. Tolkien

Posted in Uncategorized | Leave a comment

On attitude

Some people are born on third base,
but go through life thinking they hit a triple.

-Barry Switzer

 

Posted in Uncategorized | Leave a comment

On love …

The Night has a thousand eyes,
And the Day but one;
Yet the light of the bright world dies
With the dying sun.

The mind has a thousand eyes,
And the heart but one;
Yet the light of a whole life dies
When love is done.

– Francis William Bourdillon

Posted in Uncategorized | Leave a comment