- create new virtual machince macOS and target HighSierra 64
- ICH9 Chipset
- Network should be (Intel PRO/1000 MT Server)
- Display Memeory max out to 128mb
- cpu memory ~ 4096
- 2 cpus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { spawn } = require('child_process'); | |
const through = require('through2'); | |
const Promise = require('bluebird'); | |
const EventEmitter = require('events'); | |
const logger = require('../debug').spawn('gulp:shell'); | |
class NonZeroExit extends Error { | |
constructor(code, info) { | |
super(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while [[ "$#" > 0 ]]; do case $1 in | |
-d|--dependencies) dependencies=3;; | |
-n|--dry-run) dryRun=2;; | |
-t|--tag-only) tagOnly=1;; | |
*) echo "Unknown parameter passed: $1"; exit 1;; | |
esac; shift; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#http://stackoverflow.com/questions/6127328/how-can-i-delete-all-git-branches-which-have-been-merged | |
git branch -r --merged origin/master | grep -v "^.*master" | grep nmccready | sed s:origin/:: |xargs -n 1 git push --delete origin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Readable } = require('stream'); | |
module.exports = class StringStream extends Readable { | |
constructor(str) { | |
super(); | |
this.push(str); | |
this.push(null); | |
} | |
_read() {} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Promise } from 'es6-promise'; | |
import '../async'; | |
import { map as loMap } from '../../utils/lodash'; | |
import { PromiseTypeError } from '../../errors'; | |
/* keeping bundle size down and shimming Promise utilities as we need them */ | |
if (!Promise.TypeError) { | |
Promise.TypeError = PromiseTypeError; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Poor man's lodash to keep bundle down | |
*/ | |
export function iteratee(obj, cb, { bail = false } = {}) { | |
for (const key in obj) { | |
if (key in obj) { | |
const maybeBreak = cb(obj[key], key); | |
if (bail && maybeBreak === false) break; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --rm -it -v $(pwd):/myapp -p 4200:4200 -p 7020:7020 -p 7357:7357 danlynn/ember-cli:2.16.2 bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Promise } from 'es6-promise'; | |
import PromiseTry from 'es6-promise-try'; | |
import './async'; | |
if (!Promise.try) { | |
Promise.try = PromiseTry; | |
} | |
if (!Promise.try) { | |
Promise.try = PromiseTry; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `ls ~/.nvm/versions/node/v8.9.4/yarn/bin/`; do; yarn global add "$i"; done; |