Skip to content

Instantly share code, notes, and snippets.

View alexis-gruet-deel's full-sized avatar

Alexis Gruet alexis-gruet-deel

  • Media Inspection LTD
  • Cabarete/Encuentro - The Dominican Republic
  • LinkedIn in/alexis-g-103705b
View GitHub Profile
#!/bin/sh
# Quick start-stop-daemon example, derived from Debian /etc/init.d/ssh
set -e
# Must be a valid filename
NAME=foo
PIDFILE=/var/run/$NAME.pid
#This is the command to be run, give the full pathname
DAEMON=/usr/local/bin/bar
@alexis-gruet-deel
alexis-gruet-deel / gist:9243496
Created February 27, 2014 02:56
Round Robin Algorithm PHP
/**
for( $a=1; $a<20; $a++ ) {
echo '----------------------' . PHP_EOL;
echo 'PROJECT_ID :: ' . $a . PHP_EOL;
$last = $c[ 'predis' ]->get( 'round-robin-dispatch' );
$i = $j = -1;
$n = count( $array );