Skip to content

Instantly share code, notes, and snippets.

View mannysoft's full-sized avatar
🏠
Working from home

Manny Isles mannysoft

🏠
Working from home
View GitHub Profile
@mannysoft
mannysoft / installing_cassandra.md
Created June 13, 2019 04:38 — forked from hkhamm/installing_cassandra.md
Installing Cassandra on Mac OS X

Installing Cassandra on Mac OS X

Install Homebrew

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)"
@mannysoft
mannysoft / MongoDB Install and AutoStart
Created November 21, 2017 03:20 — forked from henryalee/MongoDB Install and AutoStart
Install mongodb with homebrew and set it to autostart
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
@mannysoft
mannysoft / mysql_uninstall.txt
Created July 11, 2016 08:16 — forked from ismaild/mysql_uninstall.txt
uninstall mysql, Mac OSX
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

Deploy your site with git

This gist assumes:

  • you have an online remote repository (github / bitbucket etc.)
  • you have a local git repo
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by Apache
  • the Apache user is named 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/';