Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dkreuer on github.
  • I am dkreuer (https://keybase.io/dkreuer) on keybase.
  • I have a public key ASCRpn2IXGn9iQN6WXAwIc7Cq5rPTQk0KAUgSZKV6QWPMQo

To claim this, I am signing this object:

#!/bin/sh
### BEGIN INIT INFO
# Provides: php-fpm php5-fpm
# Required-Start: $remote_fs $network
# Required-Stop: $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts php5-fpm
# Description: Starts PHP5 FastCGI Process Manager Daemon
### END INIT INFO
@dkreuer
dkreuer / pcre-define-test.php
Created December 29, 2013 11:06
Script to demonstrate the PCRE ability to define subpattern.
<?php
$testString = '192.168.0.1';
$regex1 = trim('
^ # Matches begin of string
(
\d| # Matches either a single digit or
[1-9]\d| # a number between 10 and 99 or
1\d\d| # a number between 100 and 199 or
2[0-4]\d| # a number between 200 and 249 or