Skip to content

Instantly share code, notes, and snippets.

View chriseldredge's full-sized avatar

Chris Eldredge chriseldredge

View GitHub Profile
@getify
getify / Gruntfile.js
Created October 29, 2013 20:06
shutting down a `forever`-started server when CTRL+C quitting a grunt-watch task
module.exports = function(grunt) {
var path = require("path");
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
forever: {
options: {
index: path.join(__dirname,"server.js")
/* jshint node: true */
/**
* This is a hack-ish way of triggering Karma runs on broccoli builds.
*/
var path = require('path');
var spawn = require('child_process').spawn;
var broccoli = require('broccoli');
# bash <(curl -s https://gist.github.com/drye/5387341/raw/ec72cddfe43ec3d39c91a3c118cb68ab14a049f8/enable_dnsmasq_on_osx.sh)
# ----------------------
# installing dnsmasq and enable daemon
# ----------------------
brew install dnsmasq
sudo brew services start dnsmasq
# ----------------------
# adding resolver for DOMAIN domain
# ie. domain = *.local.example.com

Developer setup

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

git

brew install git