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 | |
// Server file | |
class PushNotifications { | |
// (Android)API access key from Google API's Console. | |
private static $API_ACCESS_KEY = 'AIzaSyDG3fYAj1uW7VB-wejaMJyJXiO5JagAsYI'; | |
// (iOS) Private key's passphrase. | |
private static $passphrase = 'joashp'; | |
// (Windows Phone 8) The name of our push channel. | |
private static $channelName = "joashp"; |
/** | |
* (c) 2014 Anton Medvedev | |
* | |
* SELECT_________________ | |
* / \ \ | |
* .___ FROM JOIN | |
* / \ | / \ | |
* a city_name people address ON | |
* | | |
* =___________ |
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
''' | |
sort_zset_cols.py | |
Copyright 2013 Josiah Carlson | |
Released into the public domain. | |
''' | |
''' | |
Let's imagine that there are 3 restaurants with price, score, distance info | |
being: |
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 | |
/* (c) Anton Medvedev <[email protected]> | |
* | |
* For the full copyright and license information, please view the LICENSE | |
* file that was distributed with this source code. | |
*/ | |
namespace Entity; | |
use Doctrine\ORM\Mapping as ORM; |
<html> | |
<head> | |
<script src="http://connect.facebook.net/en_US/all.js" type="text/javascript"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> | |
<script src="strophe-102.js" type="text/javascript"></script> | |
<script src="facebook.js" type="text/javascript"></script> | |
<script> | |
var BOSH_SERVICE = 'http://island.csie.org:8273/xmpp-httpbind' | |
var connection = null; |
<?php | |
/** | |
* Dot notation for access multidimensional arrays. | |
* | |
* $dn = new DotNotation(['bar'=>['baz'=>['foo'=>true]]]); | |
* | |
* $value = $dn->get('bar.baz.foo'); // $value == true | |
* | |
* $dn->set('bar.baz.foo', false); // ['foo'=>false] | |
* |
<?php | |
// we're loading the Database TestCase here | |
require 'PHPUnit' . DIRECTORY_SEPARATOR . 'Extensions' . | |
DIRECTORY_SEPARATOR . 'Database' . DIRECTORY_SEPARATOR . | |
'TestCase.php'; | |
class FixtureTestCase extends PHPUnit_Extensions_Database_TestCase { | |
public $fixtures = array( | |
'posts', |
##Auto-deploy with php and github on an Ubuntu Amazon EC2 box
Fork from other gist Build auto-deploy with php and git(hub) on an EC2 AMAZON AMI instance - Covers a basic Ubuntu isntall
When ever it says www-data below, it's the user Apache runs under. So if your apache user is called something else, change it to that.
##Install git
sudo aptitude install git-core