Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew install mongo | |
mkdir -p ~/Library/LaunchAgents | |
cp /usr/local/Cellar/mongodb/2.2.0-x86_64/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/ | |
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist | |
# Mongo might be named differently, try this | |
cp /usr/local/Cellar/mongodb**/**/*plist ~/Library/LaunchAgents/ | |
launchctl load -w ~/Library/LaunchAgents/*mongo*plist |
1. Backup any databases you have using mysqldump | |
2. Stop MySQL using the pref panel | |
3. Open Terminal and type in the following commands | |
4. sudo rm /usr/local/mysql | |
5. sudo rm -rf /usr/local/mysql* | |
6. sudo rm -rf /Library/StartupItems/MySQLCOM | |
7. sudo rm -rf /Library/PreferencePanes/My* | |
8. edit /etc/hostconfig and remove the line MYSQLCOM=-YES- (May not be necessary) | |
9. rm -rf ~/Library/PreferencePanes/My* | |
10. sudo rm -rf /Library/Receipts/mysql* |
### Install OpenJDK | |
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
### Download and Install ElasticSearch | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.0.deb | |
sudo dpkg -i elasticsearch-1.4.0.deb |
<?php | |
// API access key from Google API's Console | |
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' ); | |
$registrationIds = array( $_GET['id'] ); | |
// prep the bundle | |
$msg = array |
This gist assumes:
www-data
(may be apache
on other systems)<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
$config['views_paths'] = array( | |
APPPATH . 'views/' | |
); | |
$config['cache_path'] = APPPATH . 'cache/blade/'; |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
$config['views_path'] = APPPATH . 'views/blade/'; | |
$config['cache_path'] = APPPATH . 'cache/blade/'; |