Skip to content

Instantly share code, notes, and snippets.

View DragonBe's full-sized avatar
:octocat:
The next step…

M van Dam DragonBe

:octocat:
The next step…
View GitHub Profile
@DragonBe
DragonBe / php_conferences_spring_2017.md
Last active February 23, 2017 13:02
Easy planning your conferences start of 2017
@DragonBe
DragonBe / SortableDirectoryIterator.php
Created June 22, 2017 21:23
Sortable DirectoryIterator based on last modification time
class SortableDirectoryIterator extends RecursiveDirectoryIterator
{
/**
* \ArrayObject
*/
private $dirArray;
public function __construct(string $path)
{
parent::__construct($path);
@DragonBe
DragonBe / php_conferences_fall_2017.md
Last active June 29, 2017 16:46
Overview of PHP conferences in the fall of 2017
@DragonBe
DragonBe / plugins.txt
Created September 7, 2017 18:51
Jenkins plugins preloader for Jenkins Docker image
ant
bouncycastle-api
build-timeout
checkstyle
cloverphp
crap4j
credentials-binding
credentials
docker-commons
docker-workflow
@DragonBe
DragonBe / dnt-check.php
Created October 20, 2017 08:34
Functionality to verify if "Do not track" is set in the browser configuration.
<?php
/**
* Functionality to verify if "Do not track" is set
* in the browser configuration.
*/
if (array_key_exists('HTTP_DNT', $_SERVER) && (1 === (int) $_SERVER['HTTP_DNT'])) {
echo 'Do not track me enabled';
} else {
echo 'Do not track me disabled';
@DragonBe
DragonBe / azure-sdk-commands.md
Created December 1, 2017 08:38
Basic Microsoft Azure CLI/SDK commands to quickly launch a web app on Azure cloud services
azure login
azure group create -t project=<project_name> <group_name> westeurope
azure appserviceplan create <group_name> <service_name> westeurope F1
azure webapp create <group_name> <app_name> westeurope <service_name>
azure webapp config set --phpversion 7.1 --detailederrorloggingenabled true <group_name> <app_name>
@DragonBe
DragonBe / php_conferences_2016.md
Last active February 9, 2018 08:02
Overview of PHP oriented conferences in 2016 (excluding polyglot and framework oriented conferences)
@DragonBe
DragonBe / gitarchive.sh
Created June 7, 2018 07:47
Creating a GPG signed archive of your GIT source code with SHA 256 checksums in bash
#!/bin/bash
# Getting the current project's directory
pf=$(printf '%q\n' "${PWD##*/}")
# Getting the current configured user's email
gpguser=$(git config user.email)
if [ -z $gpguser ]
then
echo "!!! ERROR: No user for GIT configured !!!"
@DragonBe
DragonBe / PHP-Project-Top10-List.md
Last active August 9, 2018 02:49
My personal top 10 list of PHP projects

PHP Project Top10 List

This list is my personal top 10 list of PHP projects that have no financial backup or support which deserves credits. I've also included my motivation as reference.

Software projects

  • Composer: It revolutionised PHP world by allowing people to build awesome components supported by major frameworks and tools
  • PHPUnit: Since it was ported to PHP it added quality and easy maintenance to a lot of projects
  • XDebug: This tool has offered developers a chance to analyse their code step by step to find bugs or solve coding mysteries
  • Slim Framework: A true PHP microframework
  • Phing: The PHP build tool
@DragonBe
DragonBe / config-php.sh
Created November 12, 2016 01:03
A quick configure script for building PHP
#!/bin/sh
PHP=$1
if [ $# -lt 1 ]
then
echo "Usage: $0 <php-version>"
echo
echo "php-version: php7 $PHP"
echo