Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
The next step…

Michelangelo van Dam DragonBe

:octocat:
The next step…
View GitHub Profile
@DragonBe
DragonBe / SortableDirectoryIterator.php
Created Jun 22, 2017
Sortable DirectoryIterator based on last modification time
View SortableDirectoryIterator.php
class SortableDirectoryIterator extends RecursiveDirectoryIterator
{
/**
* \ArrayObject
*/
private $dirArray;
public function __construct(string $path)
{
parent::__construct($path);
@DragonBe
DragonBe / php_conferences_fall_2017.md
Last active Jun 29, 2017
Overview of PHP conferences in the fall of 2017
View php_conferences_fall_2017.md
@DragonBe
DragonBe / php_apache_homebrew.md
Last active Oct 13, 2020
Installation of Apache 2.4 and PHP 7.1 with Homebrew
View php_apache_homebrew.md

I posted several talks about compiling PHP from source, but everyone was trying to convince me that a package manager like Homebrew was a more convenient way to install.

The purpose of Homebrew is simple: a package manager for macOS that will allow you to set up and install common packages easily and allows you to update frequently using simple commands.

I used a clean installation of macOS Sierra to ensure all steps could be recorded and tested. In most cases you already have done work on your Mac, so chances are you can skip a few steps in this tutorial.

Apache and PHP with homebrew

I’ve made this according to the installation instructions given on GetGrav.

@DragonBe
DragonBe / cache.global.php
Created Feb 2, 2017
Zend Framework configuration for Redis cache
View cache.global.php
<?php
return [
'caches' => [
'cache_longterm' => [
'adapter' => \Zend\Cache\Storage\Adapter\Redis::class,
'options' => [
'server' => [
'host' => getenv('APP_REDIS_HOST'),
'port' => getenv('APP_REDIS_PORT'),
View Lost Monday.md

Verloren maandag bestelling

Image Label Description Price
dubbel worstenbrood Dubbel Worstenbrood Two beef/pork sausages wrapped in a very tasty puff pastry. 3.90
enkel worstenbrood Enkel Worstenbrood A single beef/pork sausage wrapped in a very tasty puff pastry. 2.55
appelbol Appelbol An sweetened apple wrapped in a very tasty puff pastry. 2.55
@DragonBe
DragonBe / php_conferences_spring_2017.md
Last active Feb 23, 2017
Easy planning your conferences start of 2017
View php_conferences_spring_2017.md
@DragonBe
DragonBe / config-php.sh
Created Nov 12, 2016
A quick configure script for building PHP
View config-php.sh
#!/bin/sh
PHP=$1
if [ $# -lt 1 ]
then
echo "Usage: $0 <php-version>"
echo
echo "php-version: php7 $PHP"
echo
@DragonBe
DragonBe / automate_cloud_deployments_with_azure_cli.md
Last active Nov 8, 2016
A step-by-step instruction how to deploy an application onto Microsoft Azure using the CLI SDK.
View automate_cloud_deployments_with_azure_cli.md
View Faker phpunit result
./vendor/bin/phpunit
PHPUnit 4.8.27 by Sebastian Bergmann and contributors.
............................................................. 61 / 1623 ( 3%)
............................................................. 122 / 1623 ( 7%)
............................................................. 183 / 1623 ( 11%)
............................................................. 244 / 1623 ( 15%)
............................................................. 305 / 1623 ( 18%)
............................................................. 366 / 1623 ( 22%)
............................................................. 427 / 1623 ( 26%)
@DragonBe
DragonBe / mikko_test.md
Created Aug 9, 2016
Simple test for PHP development skill evaluation (orig. created by Mikko Koppanen)
View mikko_test.md

The assignment (max 1h30): Salary Payment Date tool

This assignment gives us a good understanding about the thought-process and the capabilities of the developer. This doesn’t have to be a rock-solid, highly scalable super fancy production-ready application, but just something that allows us to get an idea of the developer's skills and level.

Try to keep things simple. If frameworks, libraries or databases are needed to write the application, please mention them and the arguments why they were required in the documentation for this assignment.

NOTE: This is a sample code and will only be used for evaluation purposes

Requirements:

You can’t perform that action at this time.