Skip to content

Instantly share code, notes, and snippets.

View eddie's full-sized avatar

Eddie Blundell eddie

View GitHub Profile
Binary is fine; exiting
npm ERR! EEXIST, open '/home/ubuntu/.npm/c2407a7f-ntu-npm-lodash-2-4-1-package-tgz.lock'
File exists: /home/ubuntu/.npm/c2407a7f-ntu-npm-lodash-2-4-1-package-tgz.lock
Move it away, and try again.
npm ERR! System Linux 3.2.0-54-virtual
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /pipeline/build
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
@eddie
eddie / wercker.yml
Created February 24, 2015 15:43
Fix npm cache issues
box: wercker/nodejs
# Build definition
build:
# The steps that will be executed on build
steps:
- script:
name: Reduce NPM cache time
code: npm config set cache-lock-stale 10000
@eddie
eddie / API.md
Last active August 29, 2015 14:18 — forked from iros/API.md

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

for file in *.mp4; do out=`basename "$file" .mp4`.jpg; ffmpeg -ss 00:10:10 -i ./"$file" -vcodec mjpeg -vframes 1 -an -f rawvideo "$out"; done
$httpBackend.when('GET', 'http://test.com/api/v1/test', function(){
expect(1).toEqual(2);
return false;
}).respond(200, respData, respHeaders);