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 / npm-coverage.sh
Created May 10, 2015 00:15
npm-coverage.sh
----------------------------------|-----------|-----------|-----------|-----------|
File | % Stmts |% Branches | % Funcs | % Lines |
----------------------------------|-----------|-----------|-----------|-----------|
bin/ | 72.22 | 68.75 | 100 | 73.53 |
npm-cli.js | 72.22 | 68.75 | 100 | 73.53 |
lib/ | 71.16 | 59.86 | 79.62 | 75.77 |
access.js | 63.77 | 27.78 | 54.55 | 66.15 |
adduser.js | 73.63 | 58.82 | 100 | 78.57 |
bin.js | 92.31 | 50 | 100 | 90.91 |
bugs.js | 71.43 | 60.61 | 75 | 80 |
@bcoe
bcoe / ember-cli.bash
Created March 17, 2015 17:46
ember-cli.bash
└─ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”‚ β”œβ”€ [email protected]
β”‚ β”‚ β”œβ”€ [email protected]
β”‚ β”‚ β”œβ”€ [email protected]
β”‚ β”‚ β”œβ”€ [email protected]
β”‚ β”‚ β”œβ”€ [email protected]
β”‚ β”‚ β”œβ”€ [email protected]
β”‚ β”‚ β”œβ”€ [email protected]
@bcoe
bcoe / countdown.js
Created January 10, 2015 06:26
countdown.js
$(document).ready(function() {
var components = {
days: {length: 86400000},
hours: {length: 3600000},
minutes: {length: 60000},
seconds: {length: 1000}
},
dateOfWedding = new Date('Fri Oct 23 2015 16:30:00 GMT-0800 (PST)');
Object.keys(components).forEach(function(key) {
@bcoe
bcoe / npm-debug.log
Created November 14, 2014 23:54
npm-debug.log
npm-enterprise:enterprise-demo-2 benjamincoe$ npm publish --verbose
npm info it worked if it ends with ok
npm verb cli [ 'node', '/usr/local/bin/npm', 'publish', '--verbose' ]
npm info using [email protected]
npm info using [email protected]
npm verb publish [ '.' ]
npm verb cache add spec .
npm verb tar pack [ '/Users/benjamincoe/.npm/@foo/blarg/1.0.18/package.tgz',
npm verb tar pack '/Users/benjamincoe/os-npm/enterprise-demo-2' ]
npm verb tarball /Users/benjamincoe/.npm/@foo/blarg/1.0.18/package.tgz
@bcoe
bcoe / nginx.conf
Created November 6, 2014 19:27
default npme nginx
user root;
worker_processes 1;
error_log /var/log/nginx/error.log;
events {
worker_connections 1024;
}
http {
@bcoe
bcoe / npm-debug.log
Created October 15, 2014 21:15
npm-debug.log
npm-enterprise:npme benjamincoe$ npm ls
@npm/[email protected] /private/etc/npme
β”œβ”€β”¬ @npm/[email protected]
β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”€ [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
β”‚ β”‚ β”œβ”€β”¬ [email protected]
β”‚ β”‚ β”‚ └── [email protected]
@bcoe
bcoe / big-bird.md
Last active August 29, 2015 14:07
big-bird

Big Bird

An experimental front-end package registry, inspired by Bower and The-Birds-Nest

Lookup

  • visit this gist in any web-browser.
  • copy the URL of the package you wish to install.
  • packages can be resolved with a simple HTTP GET of these URLs.
@bcoe
bcoe / osx-npme-installation.md
Last active August 29, 2015 14:07
osx-npme-installation
  1. Make sure you have a 2.x npm client installed.

  2. Install dependencies with Homebrew:

brew install ansible
brew install couchdb
brew install redis
brew install nginx
@bcoe
bcoe / backup.md
Created September 16, 2014 19:48
backup.md

Backing up npmE

  1. Create a public key on the box you wish to copy your npmE to.
  2. ssh-keygen -t rsa -C "[email protected]".
  3. Add public key to authorized_keys on the remote host.
  4. rsync rsync -a [email protected]:/etc/npme /etc/
@bcoe
bcoe / package.json
Created September 11, 2014 19:26
package.json
{
"name": "@npm/apple",
"version": "0.0.39",
"description": "",
"main": "index.js",
"author": "Ben Coe <[email protected]>",
"license": "ISC",
"repository": {
"url": "git://github.com/npm/apple.git"