Open Terminal (Spotlight -> Terminal)
Copy and paste the following 3 commands in this order
-
Install Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" -
Install Node:
brew install node -
Install airsonos:
| /** | |
| * formats a datetime (yyyy-mm-dd hh:mm:ss) into a human readable elapsed format | |
| * | |
| * @return string | |
| * @param string datetime | |
| * @param string word that will end the string | |
| * @param int maximum value before returning the datetime in the datetime_format | |
| * @param string max unit to use | |
| * @param string datetime format | |
| */ |
| date('r', strtotime($mysql_datetime)); |
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| [ -z "$PS1" ] && return | |
| # don't put duplicate lines in the history. See bash(1) for more options | |
| # ... or force ignoredups and ignorespace | |
| HISTCONTROL=ignoredups:ignorespace |
| <?php | |
| // Usage and set up | |
| // change your-site to the subdomain being used for your campfire url | |
| // use the api token for the user you want posting the message | |
| // set the room id that you want the message to be posted to | |
| define('CAMPFIRE_URL', 'https://your-site.campfirenow.com/'); | |
| define('CAMPFIRE_API_TOKEN', 'apitokengoeshere'); | |
| $room_id = 12345; | |
| $message = 'I are a robot.'; |
| #!/bin/bash | |
| #-------------------------------------------------------------------- | |
| # | |
| # can put this in your .bashrc or .zshrc | |
| # if [ -f ~/.git_bash_functions ]; then | |
| # . ~/.git_bash_functions | |
| # fi | |
| # | |
| #-------------------------------------------------------------------- |
| { | |
| "bold_folder_labels": true, | |
| "caret_style": "phase", | |
| "color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
| "detect_indentation": false, | |
| "detect_slow_plugins": false, | |
| "draw_white_space": "all", | |
| "font_face": "Source Code Pro", | |
| "font_size": 11.0, | |
| "highlight_line": true, |
| <?php | |
| class Post | |
| { | |
| protected $table = 'posts'; | |
| /** | |
| * You can define your own custom boot method. | |
| * | |
| * @return void | |
| **/ |
| http://docs.google.com/viewer?url=MY_PDF_LINK.pdf&a=bi&pagenumber=1&w=800 | |
| <a href="my_pdf_link.pdf" title=""> | |
| <img src="http://docs.google.com/viewer?url=MY_PDF_LINK.pdf&a=bi&pagenumber=1&w=800" alt="" /> | |
| </a> |
| #002B36,#073642,#073642,#268BD2,#073642,#839496,#B58900,#DC322F |
Open Terminal (Spotlight -> Terminal)
Copy and paste the following 3 commands in this order
Install Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Node:
brew install node
Install airsonos: