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
└─ ember-cli@0.2.0
β”œβ”€ abbrev@1.0.5
β”œβ”€ broccoli-es6modules@0.5.1
β”‚ β”œβ”€ broccoli-caching-writer@0.5.3
β”‚ β”‚ β”œβ”€ broccoli-kitchen-sink-helpers@0.2.6
β”‚ β”‚ β”œβ”€ promise-map-series@0.2.1
β”‚ β”‚ β”œβ”€ core-object@0.0.2
β”‚ β”‚ β”œβ”€ quick-temp@0.1.2
β”‚ β”‚ β”œβ”€ symlink-or-copy@1.0.1
β”‚ β”‚ β”œβ”€ rimraf@2.3.2
@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 npm@2.1.8
npm info using node@v0.10.26
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/npm-enterprise-services@1.0.0 /private/etc/npme
β”œβ”€β”¬ @npm/enterprise-configurator@0.1.6
β”‚ β”œβ”€β”¬ chalk@0.5.1
β”‚ β”‚ β”œβ”€β”€ ansi-styles@1.1.0
β”‚ β”‚ β”œβ”€β”€ escape-string-regexp@1.0.2
β”‚ β”‚ β”œβ”€β”¬ has-ansi@0.1.0
β”‚ β”‚ β”‚ └── ansi-regex@0.2.1
β”‚ β”‚ β”œβ”€β”¬ strip-ansi@0.3.0
β”‚ β”‚ β”‚ └── ansi-regex@0.2.1
@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 "ops@npmjs.com".
  3. Add public key to authorized_keys on the remote host.
  4. rsync rsync -a ubuntu@ec2-some-server.com:/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 <bencoe@gmail.com>",
"license": "ISC",
"repository": {
"url": "git://github.com/npm/apple.git"