Skip to content

Instantly share code, notes, and snippets.

View bcoe's full-sized avatar
πŸ’­
hackin'

Benjamin E. Coe bcoe

πŸ’­
hackin'
View GitHub Profile
@bcoe
bcoe / private-modules-travis.yml
Created February 26, 2016 18:47
private-modules-travis.yml
language: node_js
node_js:
- "node"
before_install:
- printf "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
@bcoe
bcoe / npmo-ssl.nginx
Created February 9, 2016 23:09
npmo-ssl.nginx
user root;
worker_processes 1;
pid /var/run/nginx.pid;
events {
# After increasing this value You probably should increase limit
# of file descriptors (for example in start_precmd in startup script)
worker_connections 1024;
}
@bcoe
bcoe / standard.sh
Created February 6, 2016 20:33
standard.sh
standard: Unexpected linter output:
Error: Cannot find module 'eslint-config-standard-jsx' from '/home/travis/build/yargs/yargs-parser'
Referenced from: /home/travis/build/yargs/yargs-parser/node_modules/standard/.eslintrc
at Function.module.exports [as sync] (/home/travis/build/yargs/yargs-parser/node_modules/standard/node_modules/eslint/node_modules/resolve/lib/sync.js:33:11)
at resolve (/home/travis/build/yargs/yargs-parser/node_modules/standard/node_modules/eslint/lib/config/config-file.js:393:38)
at load (/home/travis/build/yargs/yargs-parser/node_modules/standard/node_modules/eslint/lib/config/config-file.js:412:24)
at /home/travis/build/yargs/yargs-parser/node_modules/standard/node_modules/eslint/lib/config/config-file.js:331:36
at Array.reduceRight (native)
at applyExtends (/home/travis/build/yargs/yargs-parser/node_modules/standard/node_modules/eslint/lib/config/config-file.js:314:28)
at Object.load (/home/travis/build/yargs/yargs-parser/node_modules/standard/node_modules/
@bcoe
bcoe / alpine-bug.sh
Created January 25, 2016 22:57
apline-bug.sh
/usr/lib/node_modules/@npm/npmo-auth-token/node_modules/inquirer/node_modules/rx-lite/rx.lite.js:75
throw e;
^
SyntaxError: Invalid regular expression: /(?:(?:\033[[0-9;]*m)*.?){1,0}/: numbers out of order in {} quantifier.
at new RegExp (<anonymous>)
at breakLines (/usr/lib/node_modules/@npm/npmo-auth-token/node_modules/inquirer/lib/utils/screen-manager.js:114:15)
at forceLineReturn (/usr/lib/node_modules/@npm/npmo-auth-token/node_modules/inquirer/lib/utils/screen-manager.js:127:20)
at ScreenManager.render (/usr/lib/node_modules/@npm/npmo-auth-token/node_modules/inquirer/lib/utils/screen-manager.js:57:13)
at Prompt.render (/usr/lib/node_modules/@npm/npmo-auth-token/node_modules/inquirer/lib/prompts/list.js:103:15)
at Prompt._run (/usr/lib/node_modules/@npm/npmo-auth-token/node_modules/inquirer/lib/prompts/list.js:73:8)
@bcoe
bcoe / npm-top.md
Last active May 1, 2026 02:29
npm-top.md

npm Users By Downloads (git.io/npm-top)


npm users sorted by the monthly downloads of their modules, for the range May 6, 2018 until Jun 6, 2018.

Metrics are calculated using top-npm-users.

# User Downloads
@bcoe
bcoe / output-on-master.md
Created December 25, 2015 04:18
output-on-master.md
ubuntu@enterprise:~/tmp/spawn-wrap$ git branch
* master
  windows
ubuntu@enterprise:~/tmp/spawn-wrap$ npm t

> spawn-wrap@1.0.1 test /home/ubuntu/tmp/spawn-wrap
> tap test/*.js

test/basic.js ....................................... 12/16
@bcoe
bcoe / nyc-es6.md
Created November 25, 2015 16:32
nyc-es6.md
  1. rather than running tests against transpiled code, run require('babel-core/register') before beginning the test run. Here's an example of how this works with mocha:
{
  "scripts": {
    "test": "mocha --compilers js:babel-core/register"
  }
}
@bcoe
bcoe / try-install.md
Created September 12, 2015 19:31
try-install.md

npm-try-install

For when you want to try to install a module, but want to keep on truckin' if you are unable to. I found this useful for simulating optional-dev-dependencies.

npm-try-install lodash fffffffgggggg

License

@bcoe
bcoe / shiny.js
Created August 30, 2015 20:10
shiny.js
// no need for redis-url any longer, this:
this.redis = require('redis-url').connect(opts.redis);
// simply becomes, this:
this.redis = require('redis').createClient(opts.redis);
@bcoe
bcoe / ionic
Created May 21, 2015 16:20
ionic
└─ ionic@1.4.6-beta.0
β”œβ”€ cli-table@0.3.1
β”‚ └─ colors@1.0.3
β”œβ”€ colors@0.6.2
β”œβ”€ crc@3.2.1
β”œβ”€ connect-livereload@0.5.2
β”œβ”€ archiver@0.5.1
β”‚ β”œβ”€ readable-stream@1.1.13
β”‚ β”‚ β”œβ”€ core-util-is@1.0.1
β”‚ β”‚ β”œβ”€ isarray@0.0.1