How to install an iPhone system log for mac outputting to the console

1. download and save to {your-path}:
2. edit bash profile:
nano ~/.bash_profile
3. add this in the end:
4. in terminal, run:
source ~/.bash_profile
5. use: idevicesyslog

PHP and Javascript Long Polling Chat App

How to display hidden files on mac

defaults write AppleShowAllFiles YES

How to extract a rar file in mac using command line unrar

1. install brew:
ruby -e "$(curl -fsSL"
2. install unrar:
brew install unrar
3. use unrar:
unrar x file.rar

How to install castnow - control chromecast from command line

1. install node.js
2. git clone
3. sudo npm install castnow -g
4. use: castnow (youtube url, local file)