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

1. download and save to {your-path}:
https://github.com/benvium/libimobiledevice-macosx/zipball/master
2. edit bash profile:
nano ~/.bash_profile
3. add this in the end:
PATH=${PATH}:/{your-path}/
export DYLD_LIBRARY_PATH=/{your-path}/:$DYLD_LIBRARY_PATH
4. in terminal, run:
source ~/.bash_profile
5. use: idevicesyslog

PHP and Javascript Long Polling Chat App

chat.nur.xyz

How to display hidden files on mac

defaults write com.apple.finder AppleShowAllFiles YES

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

1. install brew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
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 https://github.com/xat/castnow.git
3. sudo npm install castnow -g
4. use: castnow (youtube url, local file)