Skip to content

Instantly share code, notes, and snippets.

happy developer

Alexander Hutorezki olekhy

happy developer
  • Berlin, Germany
View GitHub Profile

DDD, CQRS and Event Sourcing in PHP

  • Broadway - Infrastructure and testing helpers for creating CQRS and event sourced applications
  • EventCentric.Core - Event Sourcing and CQRS in PHP
  • LiteCQRS - Small convention based CQRS library for PHP
  • predaddy - Common DDD classes including an annotation driven message bus and tools for CQRS and Event Sourcing
  • ProophEventSourcing - Provides basic functionality for event-sourced aggregates
  • ProophEventStore - PHP 5.4+ EventStore Implementation
  • ProophServiceBus - PHP Enterprise Service Bus Implementation supporting CQRS and DDD
realjohnwick /
Created Dec 13, 2017
Install Docker CE on Ubuntu 17.10 and Docker-compose

Installing Docker CE on Ubuntu 17.10 Artful Aardvark

As of 20/10/2017, a release file for Ubuntu 17.10 Artful Aardvark is not available on Download Docker.

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
View capture display on linux.txt
ffmpeg -framerate 25 -video_size 1024x768 -f x11grab -i :0.0+100,200 -f alsa -ac 2 -i pulse -vcodec libx264 -crf 0 -preset ultrafast -acodec pcm_s16le output.mkv
ffmpeg -video_size 1920x1080 -framerate 30 -f x11grab -i :0.0 -c:v libx264 -qp 0 -preset ultrafast capture.mkv

Sed Cheat Sheet

Sed command line options

sed [options] sed-command [input-file]
Option Description Example

Here's how to test whether a parameter is unset, or empty ("Null") or set with a value:

|                    |       parameter      |     parameter   |    parameter    |
|                    |   Set and Not Null   |   Set But Null  |      Unset      |
| ${parameter:-word} | substitute parameter | substitute word | substitute word |
| ${parameter-word}  | substitute parameter | substitute null | substitute word |
| ${parameter:=word} | substitute parameter | assign word     | assign word     |
| ${parameter=word}  | substitute parameter | substitute null | assign word     |
bastman /
Created Mar 31, 2016
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see:

$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
View git lola
git config --global alias.lola "log --graph --decorate --pretty=oneline --abbrev-commit --all"
prashanthrajagopal /
Last active Sep 27, 2019
Run Selenium test via curl
s_id=`curl -X POST -d '{"desiredCapabilities":{"browserName":"firefox","platform":"MAC"}}'|awk -F'"' '{print $6}'`
curl -X POST$s_id/url -d '{"url":""}'
curl -X POST$s_id/element -d '{"using":"id","value":"gbqfq"}'
curl -X POST$s_id/element/0/value -d {"value":["selenium"]}
curl -X POST$s_id/element -d '{"using":"id","value":"gbqfb"}'
curl -X POST$s_id/element/1/click
curl -X DELETE$s_id/window
johnbellone / .env
Last active Dec 19, 2016
Using dotenv gem with Vagrant and proxies.
View .env
plentz / nginx.conf
Last active Jan 15, 2021
Best nginx configuration for improved security(and performance). Complete blog post here
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
You can’t perform that action at this time.