We will install Larave 4.1 with PHP5.5 & Latest nginx on Ubuntu 12.04.3 x64.
apt-get update && apt-get upgrade
adduser [username]
usermod -aG sudo [username]
apt-get -y install git
cordova plugin add https://github.com/brodysoft/Cordova-SQLitePlugin.git |
angular.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers']) | |
.run(function(DB) { | |
DB.init(); | |
}); |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
<?php namespace Illuminate\Database\Connectors; | |
class MySqlConnector extends Connector implements ConnectorInterface { | |
/** | |
* Establish a database connection. | |
* | |
* @param array $options | |
* @return PDO | |
*/ |
-- phpMyAdmin SQL Dump | |
-- version 2.11.6 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Host: localhost:3306 | |
-- Generation Time: Jan 11, 2013 at 04:24 PM | |
-- Server version: 5.0.51 | |
-- PHP Version: 5.2.5 | |
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; |
Select all and delete (actually move to buffer) | |
:%d | |
Select all and copy to buffer | |
:%y | |
Use p to paste the buffer. |
<?php | |
/** | |
* Create a web friendly URL slug from a string. | |
* | |
* Although supported, transliteration is discouraged because | |
* 1) most web browsers support UTF-8 characters in URLs | |
* 2) transliteration causes a loss of information | |
* | |
* @author Sean Murphy <[email protected]> | |
* @copyright Copyright 2012 Sean Murphy. All rights reserved. |