Skip to content
joeangel edited this page May 9, 2017 · 12 revisions

Welcome to the aio wiki!

pull/push from multiple remote locations

http://stackoverflow.com/a/849960

Install nodejs on Mac

rm -rf /usr/local/lib/node_modules
brew uninstall node
brew install node --without-npm
echo prefix=~/.npm-packages >> ~/.npmrc
curl -L https://www.npmjs.com/install.sh | sudo sh

Nginx on Mac

Docroot is: /usr/local/var/www

The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that nginx can run without sudo.

nginx will load all files in /usr/local/etc/nginx/servers/.

if you don't want/need a background service you can just run:

sudo nginx  

if you need stop:

sudo nginx -s stop

WARNING: brew services will fail when run under tmux.

Virtual Hosts on nginx (CSC309)

https://gist.github.com/soheilhy/8b94347ff8336d971ad0

How To Set Up a Node.js Application for Production on Ubuntu 14.04

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04

Pay2Go

AIO vimrc config

autocmd Filetype javascript setlocal tabstop=2 shiftwidth=2 expandtab "aio

test coverage for asyncawait

https://www.npmjs.com/package/npmtest-asyncawait

remove CR

ref: https://gist.github.com/joeangel/b6b1e690ecb681d542b3055d449d0b2d

sudo su
find * -name "*.php" -exec sed -i 's/\r$//g' {} \;