Skip to content

Instantly share code, notes, and snippets.

View PurpleBooth's full-sized avatar

Billie Thompson PurpleBooth

View GitHub Profile

Here is a non-exhaustive list of books that have influenced how I think about software.

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a

Docker Container Name

A one paragraph description about the container.

Getting Started

These instructions will cover usage information and for the docker container

Prerequisities

The MIT License (MIT)

Copyright (c) 2015

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is

@PurpleBooth
PurpleBooth / kubernetes-abstract.md
Last active September 24, 2015 12:38
Kubernetes Talk Abstract

At the Home Office we had a problem. Hundreds of lines of infrastructure, everyone doing their own thing, and reinventing the wheel. During this talk I'll tell you how we are attempting resolve that using Docker, Kubernetes and changing developer culture.

This talk consists of 3 parts. In the first I will introduce you to docker and talk about how to use it to create reusable infrastructure components, then I will talk about how to deploy and manage those components with the open source PaaS Kubernetes, and finally I'll talk about changing our culture using tools and techniques to ensure we keep reusing into the future.

@PurpleBooth
PurpleBooth / am-i-ready-to-open-source-this.md
Last active February 4, 2021 22:17
Checklist to see if your open source repo is primetime ready!

Am I ready to Open Source This?

The checklist:

  1. A readme following a good template
  2. A contributing.md with a code of conduct.
  3. A license
  4. Travis configuration
  5. A way for people to raise issues
  6. Link to it
protected static function getFieldFlags($what)
{
// Order of flags taken from http://lxr.php.net/xref/PHP_5_6/ext/mysql/php_mysql.c#2507
$constantFlagMap = [
MYSQLI_NOT_NULL_FLAG => "not_null",
MYSQLI_PRI_KEY_FLAG => "primary_key"
...
];
$flags = [];
<?php
// Currently PHPStorm does this
$that->someFunction($aReallyLongFunctionVariable, $aReallyLongFunctionVariable, $aReallyLongFunctionVariable,
$aReallyLongFunctionVariable);
// I want it to do this
$that->someFunction(
$aReallyLongFunctionVariable,
$aReallyLongFunctionVariable,
composer() {
mv ~/.homebrew/etc/php/7.0/conf.d/ext-xdebug.ini ~/.homebrew/etc/php/7.0/conf.d/ext-xdebug.ini-backup
command composer $@
STATUS=$?
mv ~/.homebrew/etc/php/7.0/conf.d/ext-xdebug.ini-backup ~/.homebrew/etc/php/7.0/conf.d/ext-xdebug.ini
return $STATUS
}
alias composer=composer