Skip to content

Instantly share code, notes, and snippets.

View michaelcullum's full-sized avatar

Michael Cullum michaelcullum

View GitHub Profile
michaelcullum /
Last active January 5, 2017 02:00
A quick and dirty script to set up multiple PHP CLI servers

CLI Servers Script

This script creates a series of web servers defined in a config file on different ports.


  • Copy from below to the root directory in which you have all your php projects (e.g. /var/www/ or ~/code/)
  • In that directory run mkdir logs
  • Create a file in that directory called config and add configuration for each web server as detailed below and exemplified in the config file in this gist.
  • Run sh when you wish to start your web servers. They will run in the background until their processes are killed (by using kill or a reboot).

Config file

# The real stuff
RewriteEngine On
# Redirect to HTTPS
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Candidates Standing for Election

Brief descriptions are just designed to help jog memory, not provide comprehensive descriptions. Please read nomination topics.

Name Proposer Twitter Handle Brief Description of Projects/Companies Link to nomination topic
Beau Simensen Chris Tankersley simensen Sculpin, Silex, SensioLabs US Link
Cees-Jan Kiewiet Michiel Rook wyrihaximus ReactPHP, Async Interop Link
Chris Tankersley Korvin Szanto           [dragon

Keybase proof

I hereby claim:

  • I am michaelcullum on github.
  • I am michaelcullum ( on keybase.
  • I have a public key ASD1BX1Rj-dltDjuAeaWAtiXWbqneIwGCJMtQ_KrO3w9XQo

To claim this, I am signing this object:

michaelcullum /
Last active August 11, 2016 23:55
Formal List of Candidates for FIG Secretary August 2016

Candidates Standing for Election

Name Proposer Confirmed by nominee Confirmed by secretary Link to nomination topic
Jonathan Reinink Jordi Boggiano Link
Samantha Quiñones Matthew Weier O'Phinney Link
Matt Trask Graham Daniels Link
Phil Sturgeon Jordi Boggiano Link
Paul M Jones Nate Abele
namespace AppBundle\Form\Type;
use Symfony\Component\Form\AbstractType
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\Extension\Core\Type\{TextType, DateType, IntegerType, CheckboxType};
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
class FoobarType extends AbstractType
michaelcullum /
Last active February 7, 2016 22:28
FIG Access
  • cache - Larry (PSR-6 WG), Robert (PSR-6 WG), Paul D (PSR-6 WG), Jordi (Packagist)
  • cache-utils - Larry (PSR-6 WG), Robert (PSR-6 WG), Paul D (PSR-6 WG), Jordi (Packagist)
  • http-message - Matthew (PSR-7 WG)
  • - Paul D, Jonathan Reninink (As website team)
  • fig-standards - Korvin (PSR-9, PSR-12 WG), Alexander (PSR-12 WG), Larry (PSR-8, PSR-10, PSR-13 WG), Lukas (PSR-9, PSR-10 WG), Mike (PSR-5), PMJ (PSR-11), Matthew (PSR-13 WG), Evert (PSR-13 WG), Jeremy (PSR-11 WG).
  • log - Jordi (PSR-3 WG)

Owners (Access to all): Michael, Joe, Paul D and Paul MJ

Lots of people have access to fig-standards but the master branch is protected from deletion or force pushes and nobody but owners have admin.

michaelcullum /
Last active November 18, 2015 19:32
Bylaw changes

FIG Secretary Bylaw (To be introduced into the Membership Bylaw)

Overarching role:

The primary responsibility of the FIG Secretary is to serve as an impartial administrator of the FIG. They serve at the member projects pleasure but act as independent and impartial adjudicators. FIG Secretaries will also represent the FIG as a whole to the general community and public on matters relating to the FIG's activities.

Whilst there are a number of defined functions below but they should also perform other duties as required. As the role has continuity (in that there will always be a post holder) and redundancy (There are a number of post holders in case of the absence of one) it can be ensured that responsibilities assigned to the secretary will always be completed and therefore administrative responsibilities such as vote management should always be assigned to the FIG secretary.

All FIG secretaries are expected to remain impartial and professional when acting in an official capacity as secretary and shou

michaelcullum / amAbstract.csv
Last active August 29, 2015 14:27
6 rows of anonymized Ashley Madison Data for research purposes (what data did they store/was leaked). Taken from a CC transactions file.
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 27 columns, instead of 15. in line 4.
99973132,ADL Media Inc - TDS,30,193979,Z,MC,Removed last 4,,36290683,Removed Surname,11972130,,15/06/2015 00:37,3968337560,3968337560,,Undefined,Authorizations,Long Island City,US,Removed Email,,NY,,,11109,
99926939,Avid Dating Life Inc,51.45,5642,B,VI,Removed last 4,M,36414649,Removed Surname,11972161,,15/06/2015 00:44,3968348090,3968348090,,Undefined,Authorizations,Mill Bay,CA,Removed Email,,BC,,,V0r2p1,Removed IP
99973132,ADL Media Inc - TDS,30,162902,Z,AM,Removed last 4,,35657079,Removed Surname,11972238,,15/06/2015 00:55,3968397150,3968397150,,Undefined,Authorizations,Harrison,US,Removed Email,,NJ,,,7029,
99926056,Avid Dating Life Inc,30,15126,N,VI,Removed last 4,,27255313,Removed Surname,11972310,,15/06/2015 01:12,3968472060,39684720
alias ls='ls -F --color --show-control-chars'
alias ll='ls -la'
alias gs='git status -sb'
alias ga='git add'
alias gc='git commit'
alias gch='git checkout'
alias gp='git pull'
alias gpp='git push'
alias gpo='git push origin'
alias gr='git reset --hard'