Skip to content

Instantly share code, notes, and snippets.

View mcanever-fastbooking's full-sized avatar

mcanever-fastbooking

View GitHub Profile
<?php
// CONFIG
$servers = array(
array('Local', '127.0.0.1', 6379),
);
// END CONFIG
$server = 0;
if (isset($_GET['s']) && intval($_GET['s']) < count($servers)) {
$server = intval($_GET['s']);
@mcanever-fastbooking
mcanever-fastbooking / README.md
Last active November 24, 2017 14:05
onAvailable - Wait for libraries to be available in window and run a callback.

Use example:

onAvailable(['jQuery', 'jQuery.fn.countdown'], function() {
    jQuery('.countdown').countdown(the_countdown_date, function(event) {
        jQuery(this).html(event.strftime(the_countdown_template));
    });
});
@mcanever-fastbooking
mcanever-fastbooking / GoDaddySSLHAProxy.md
Created June 13, 2017 15:55 — forked from shanielh/GoDaddySSLHAProxy.md
Creating a PEM for HaProxy from GoDaddy SSL Certificate

GoDaddy SSL Certificates PEM Creation for HaProxy (Ubuntu 14.04)

1 Acquire your SSL Certificate

Generate your CSR This generates a unique private key, skip this if you already have one.

sudo openssl genrsa -out  etc/ssl/yourdomain.com/yourdomain.com.key 1024

Next generate your CSR (Certificate Signing Request), required by GoDaddy: