Thursday, January 28, 2016

connect to host postgresql from vagrant guest

user@host:~$ sudo -i
root@host:~$ echo "listen_addresses = '*'" >> /etc/postgresql/9.5/main/postgresql.conf
root@host:~$ echo "host    all             all             0.0.0.0/0            md5" >> /etc/postgresql/9.5/main/pg_hba.conf

root@host:~$ /etc/init.d/postgresql restart


connect to host from guest
user@host:~$ vagrant ssh
vagrant@guest:~$ psql -h 192.168.33.1



Thursday, January 21, 2016

npm install on ubuntu

npm config set registry=http://registry.npmjs.org/