brew update
brew install rabbitmq
To see if rabbitmq is running after following the installation instructions:
launchctl list | grep rabbit
> 48303 - homebrew.mxcl.rabbitmq
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Cross-Origin Resource Sharing (CORS) With jQuery And Node.js</title> | |
</head> | |
<body> | |
<h1> | |
Cross-Origin Resource Sharing (CORS) With jQuery And Node.js | |
</h1> |
$ = jQuery | |
queues = {} | |
running = false | |
queue = (name) -> | |
name = 'default' if name is true | |
queues[name] or= [] | |
next = (name) -> |
fs = require 'fs' | |
util = require "util" | |
log = fs.createWriteStream(process.cwd() + "/test/stdout.log") | |
console.log = console.info = (t) -> | |
out = undefined | |
if t and ~t.indexOf("%") | |
out = util.format.apply(util, arguments) | |
process.stdout.write out + "\n" | |
return | |
else |
# Using @setTimeout or @setInterval will clear the timers on dispose | |
# Mixin, can be used with https://github.com/HubSpot/mixen | |
start = (type, args) -> | |
unless @disposed | |
method = window["set#{type}"] | |
timer = method.apply window, args | |
@timers[type].push timer | |
timer |
var gulp = require('gulp'); | |
var source = require('vinyl-source-stream'); | |
var watchify = require('watchify'); | |
var livereload = require('gulp-livereload'); | |
var hbsfy = require("hbsfy").configure({ | |
extensions: ["html"] | |
}); | |
gulp.task('watch', function() { |
extension_id=jifpbeccnghkjeaalbbjmodiffmgedin # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc"
unzip -d "$extension_id-source" "$extension_id.zip"
Thx to crxviewer for the magic download URL.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # install HomeBrew | |
brew tap caskroom/cask # install Cask | |
brew cask install virtualbox # install VirtualBox | |
brew install docker docker-machine # install Docker and Docker-machine | |
docker-machine create --driver virtualbox default # create a Docker VM named "default" | |
eval $(docker-machine env default) # set env var to tell Docker client to talk to our VM | |
docker version # Docker works, yay! | |
brew tap redspread/spread # tell HomeBrew where Spread is | |
brew install kubectl spread # install Kubectl and Spread | |
spread cluster start # ask Spread to start a k8s cluster with Docker client settings |
/* | |
Utility to analyze bundle chunks over versions. | |
Assumes: webpack has already created the bundle summary json file -> stats.json | |
Parameters: | |
version: (Optional) a string that labels the current bundle with the version | |
provided and saves the summary in a csv file. | |
Output: | |
If run the first time, generates a csv file bundleAnalaysis.csv, which |
const { resolve } = require('path'); | |
/** | |
* Resolve tsconfig.json paths to Webpack aliases | |
* @param {string} tsconfigPath - Path to tsconfig | |
* @param {string} webpackConfigBasePath - Path from tsconfig to Webpack config to create absolute aliases | |
* @return {object} - Webpack alias config | |
*/ | |
function resolveTsconfigPathsToAlias({ | |
tsconfigPath = './tsconfig.json', |