Apple menu -> System Preferences -> Security & Privacy -> Firewall
sudo pfctl -e
sudo dnctl pipe 1 config bw 10Kbit/s
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
This issue is so infuriating that I'm going to take some time to write about it.
MOST IMPORTANT. Your local development server must be bound to IP address 0.0.0.0. Some do this by default, but many don't. You need to make sure that you run your local server with correct IP bindings. You may need to provide additional flags to your serve commands e.g. polymer serve --hostname domain.local
, hugo serve --bind 0.0.0.0
. If you use a named domain like domain.local
, it has to be defined in /etc/hosts
and pointing at 0.0.0.0.
My Parallels setting is using Shared Network, nothing special there.
Open macOS Terminal and type ifconfig
. Look for the value under vnic0
> inet
. It is typically 10.211.55.2
.
import React from 'react' | |
import mrEmitter from '../helpers/mrEmitter' | |
export default class EmittingComponent extends React.Component { | |
handleClick = () => { | |
mrEmitter.emit('onSomeEvent', 'foo sends bar') | |
} | |
render() { |
package main | |
import ( | |
"net/http" | |
) | |
func redirect(w http.ResponseWriter, req *http.Request) { | |
http.Redirect(w, req, | |
"https://" + req.Host + req.URL.String(), | |
http.StatusMovedPermanently) | |
} |
/** | |
* For more information see this tutorial: http://blog.webbb.be/use-jekyll-with-gulp/ | |
* | |
* Libs import | |
* --> How to install? npm install --save-dev gulp-minify-html | |
* @type {[type]} | |
*/ | |
var gulp = require('gulp'), | |
path = require('path'), |
#add 'node_modules' to .gitignore file | |
git rm -r --cached node_modules | |
git commit -m 'Remove the now ignored directory node_modules' | |
git push origin <branch-name> |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "email@work_mail.com" -f "id_rsa_work_user1"
CONTAINER="name" | |
DB="Db name" | |
TABLE="Table Name" | |
FILE="file.csv" | |
sudo docker exec -u postgres ${CONTAINER} psql -d ${DB} -c "COPY ${TABLE} TO STDOUT WITH CSV HEADER " > ${FILE} |