Skip to content

Instantly share code, notes, and snippets.

View kabel's full-sized avatar

Kevin Abel kabel

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']);

Keybase proof

I hereby claim:

  • I am kabel on github.
  • I am kabel5 (https://keybase.io/kabel5) on keybase.
  • I have a public key ASASJZedXbWO48OoBJOKJUZ63SahrFss54D2-yGrS51oIAo

To claim this, I am signing this object:

@kabel
kabel / # php - 2018-06-07_22-34-19.txt
Created June 8, 2018 04:00
php on macOS 10.13.4 - Homebrew build logs
Homebrew build logs for php on macOS 10.13.4
Build date: 2018-06-07 22:34:19
@kabel
kabel / ocp.php
Last active September 20, 2016 14:31 — forked from ck-on/ocp.php
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok, n1xim, pennedav, kabel)
Version: 0.2.0
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.2.0 0000-00-00 Updated page layout/styles and restructure code to be more MVC-like (kabel)
implemented HTTP Basic authentication (pennedav)
@kabel
kabel / RecursiveDirectoryIterator-test.php
Created April 20, 2012 22:18
Compare PHP RecursiveIteratorIterator use with FilterIteractors
<?php
/*
Filesystem layout of ./backup/
total 0
drwxrwxr-x 3 kabel staff 102 Apr 20 16:00 db
drwxrwx--x 3 root wheel 102 Apr 20 16:31 do-not-backup
./db:
total 8
@kabel
kabel / post-receive
Created March 12, 2012 21:35
Example git post-receive hook
#!/bin/sh
#
# An example hook script for the post-receive event
#
# This script is run after receive-pack has accepted a pack and the
# repository has been updated. It is passed arguments in through stdin
# in the form
# <oldrev> <newrev> <refname>
# For example:
# aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master
@kabel
kabel / git-rcs-keywords.sh
Created March 9, 2012 04:44
A shell script to install/remove rcs-keywords filter to/from local repo git-config
#!/bin/sh
# Use this tool to install rcs-keywords filters
section="filter.rcs-keywords"
clean=".git_filters/rcs-keywords.clean"
smudge=".git_filters/rcs-keywords.smudge %f"
if [ "$1" = "remove" ]; then
echo "Removing rcs-keywords filter from git-config"